Chapter 6. WS-Reliable Messaging
org.apache.cxf.ws.rm.RMOutInterceptor- Responsible for:
- Sending
CreateSequencerequests. - Waiting for their
CreateSequenceResponseresponses. - Collecting the sequence properties (id and message number) for an application message.
-
org.apache.cxf.ws.rm.RMInInterceptor - Intercepting and processing RM protocol messages, as well as
SequenceAcknowledgmentspiggybacked on application messages. org.apache.cxf.ws.rm.soap.RMSoapInterceptor- Encoding and decoding the RM headers
-
org.apache.cxf.ws.rm.soap.RetransmissionInterceptor - Responsible for creating copies of application messages for future resends.
The presence of the RM interceptors on the respective interceptor chains alone will ensure that RM protocol messages are exchanged when necessary. For example, upon intercepting the first application message on the outbound interceptor chain, the RMOutInterceptor will send a CreateSequence request and only proceed with processing the original application message after it has the CreateSequenceResponse response. The RM interceptors are also responsible for adding the sequence headers to the application messages and, on the destination side, extracting them from the message.