|
|
|||
Bhakti Mehta's BlogMarch 2006 ArchivesOverview of Web Services Reliable MessagingPosted by bhaktimehta on March 31, 2006 at 01:08 PM | Permalink | Comments (0)Consequently, messages can be lost or delivered out of order. Web Services Reliable Messaging (WS RM) provides a mechanism to ensure a layer of reliability between potentially unreliable or intermittently connected networks. It provides an interoperable protocol that a RM (Reliable Messaging) Source and RM Destination use to provide Application Source and Destination a guarantee that the message that is sent will be delivered. This guarantee is known as delivery assurance. There are four basic delivery assurances that endpoints can provide AtMostOnce: Messages will be delivered at most once without duplication . It is possible some messages in a sequence may not be delivered. AtLeastOnce: Every message sent will be delivered. Some messages may be delivered more than once. ExactlyOnce : Every message sent will be delivered without duplication. InOrder: Messages will be delivered in the order that they were sent.
will provide configurable settings to easily enable RM in endpoints as shown in the screen shot below. ![]() Fig 1 Screenshot of how to configure WS RM for an endpoint using Netbeans Programming Model for Tango
![]() Fig 2 Message exchange when RM is enabled using WS RM implementation The above figure shows how the Client or Application Source sends a message for reliable delivery. When RM is enabled, Project Tango's RM Source module is plugged into the JAX-WS remoting system. The RM Source module keeps copies of messages until their receipt is acknowledged (via the exchange of protocol messages). Similarly, an RM Destination module acknowledges messages (and may buffer them for order guarantees). After guaranteeing order (if ordering enabled), the RM Destination allows the message to proceed through the JAX-WS dispatch for delivery to the Endpoint or Application Destination. Protocol Messages ![]() Fig 3 Possible application and protocol message exchanges between RM endpoints The above figure shows how the message exchange takes place between two reliable messaging endpoints once the initial preconditions are established such as resolving endpoint references, policy exchange and establishing trust.
Availability The implementation will be available by JavaOne on Java.net with support for Glassfish and Netbeans IDE. Plugfest Status We tested our WS RM implementation with Microsofts WCF at the Plugfest on March 7-9 at Redmond. We successfully interoperated in the ReliableOneWay and ReliableRoundrip scenarios both as clients and endpoints. JavaOne 2006 For more information be sure to check out the session on Reliable and Transacted Web Services between Java™ Technology-Based Project Tango and Microsoft Indigo TS-1603. Other information WS-ReliableMessaging specification WS-RM Policy Assertion | |||
|
|