Skip to content

Support configuring MessageFactory implementation

Compare
Choose a tag to compare
@runeflobakk runeflobakk released this 03 Jul 10:59
· 42 commits to master since this release

The library is now more "insisting" by default on using the EE4J Metro SAAJ-RI. See https://github.com/digipost/sdp-shared/releases/tag/2.13 for details.

The mechanism to use for creating javax.xml.soap.MessageFactory instances is configurable with MessageSender.Builder.withSoapMessageFactorySupplier(..)

The library will now log which implementation of MessageFactory it ends up using. Normally, if not configuring otherwise, it will output the following log statement, indicating it is using EE4J Metro SAAJ-RI:

[INFO] no.digipost.api.MessageSender$Builder - Using instance of com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl as MessageFactory