The goal of Reliable Messaging in Web services is to allow applications to send and receive messages in an efficient, and reliable manner amidst application, platform, or network failure. The WS-Reliable Messaging specification (WS-RM), defines a protocol and a set of mechanisms that ensure that messages are delivered reliably between two endpoints.
The WSO2 Web Services Application Server (WSAS) provides a Reliable Messaging tool that is used to enable WS-RM to services at global level and service level. If you activate reliable messaging for a particular service, your configurations will be applied to that particular service. WS-Reliable Messaging handles and solves both simple and complex scenarios arising in message transmission.
Service Level
Figure 1: Enabling Reliable Messaging
Global Level
In the navigator, under Manage/Modules, click click List. This will show you all the deployed modules. Then click Configure link in front of sandesha2 module. Then you can configure reliable meassaging in the same way as explained above.
WS-RM defines a one way sequence. The sender (source) is called the RMS (reliable messaging source) and the receiver (destination) is called the RMD (reliable messaging destination). Therefore for in-out operations, the RM uses two sequences. For request messages, the server acts as the RMD and for response messages, the server act as the RMS.
Inactivity Timeout Interval | The maximum inactive time for any RM session. After the sequence timeout, the RM session is terminated. |
Inactivity Timeout Measure | The unit in which the inactivity timeout interval is specified. |
Sequence Removal Timeout Interval | If the sequence is inactive during this time period, the sequence is removed from the storage. |
Sequence Removal Timeout Measure | The unit in which the sequence removal timeout interval is specified. |
Acknowledgment Interval | The time interval that the RMD uses to send the acknowledgments |
Retransmission Interval | The time interval after which the RMS retransmits the message if it does not get an acknowledgment |
ExponentialBackoff | Whether RMS exponentially increases the retransmission time or not |
Maximum Retransmission Count | The maximum number of retransmits the RMS sends |