Providers and Asynchronous Messaging
The asynchronous messaging and reliable delivery features of JAXM are implemented by a messaging provider. The specification itself says very little about the provider, other than to describe the API needed to access it, leaving the details to be determined by implementations. In practice, application code is almost unaffected by the presence of a provider, but it is very important to understand how to configure the provider and how to deploy the application with the appropriate settings required to access it. In this section, we look at the API that application code uses to work with the provider, and at how to configure the provider included with the JAXM reference implementation.
Provider Message Path
When a message provider is in use, the logical flow of a message is still directly from the sender to the receiver, but the actual flow is somewhat different, as shown in Figure 4-4.

Figure 4-4. Logical and actual message flow when using a messaging provider
In order to send messages, the
sender first connects to the local provider and determines whether it
supports the messaging profile that it wants to use; if so, it
obtains a MessageFactory for that profile. Each
message is then handled as follows:
The sender creates a SOAP message using the SAAJ API with the
MessageFactoryfor the selected messaging profile.The message is sent to the local provider. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access