WAS v8.5 > WebSphere applications > Messaging resources > Interoperation with WebSphere MQ > Interoperation using a WebSphere MQ linkStrict message ordering using the strict message ordering facility of the WAS default messaging provider
Strict message ordering can be achieved when deploying message driven bean applications to the WebSphere MQ messaging provider for WAS when no special facilities have been coded into the application to handle messages arriving out of order using the strict message ordering facility of the WAS default messaging provider.
The following assumptions have been made in this scenario:
- The MDB application is transactional.
- The back-out threshold (BOTHRESH) on theWebSphere MQ queue has been set to 0.
Configuration for ordered delivery
- A service integration bus, with a WebSphere MQ link between the WebSphere MQ queue manager hosting the queue and the bus.
- If a mixture of persistent and nonpersistent messages might be sent within an ordered sequence, set the non-persistent message speed (NPMSPEED) on the WebSphere MQ sender channel to NORMAL.
- You must configure a destination in the bus with the Strict message ordering option selected, which the MDB application consumes from through a default messaging provider activation specification.
- Replace the local queue definition with a remote queue definition within WebSphere MQ, so that messages sent to the destination queue are forwarded over the WebSphere MQ link to the bus.
This configuration is just one possible option for configuring queue name resolution within the queue manager to forward messages over the link.
Important information about this configuration
- This deployment option combines the message ordering capabilities of WebSphere MQ (which include when sending over a channel) with the additional messages ordering facilities provided by the default messaging provider for WAS (which prevent out of order delivery in transaction recovery scenarios).
- This deployment option is complex as it requires planning, and runtime administration, of a bus topology in addition to a WebSphere MQ topology.
- It also adds internal complexity as messages are converted automatically between the low level WebSphere MQ and default messaging provider formats as they travel over the WebSphere MQ link.
Circumstances in which messages can arrive out of order
There are no circumstances in which this deployment is expected to cause messages to be delivered out of order.
Considerations for clustered deployment
- Ordered delivery from the bus destination to the MDB is enforced automatically in a clustered environment when the Strict message ordering option is selected for the destination.
- The main consideration for a clustered environment is establishing high availability of the WebSphere MQ link between the queue manager and the bus. For more information about the options available for ensuring the connection to a failover WAS gateway messaging engine is reinstated, see .
Related concepts:
Strict message ordering with the WebSphere MQ messaging provider and MDB applications
Bus configurations
Strict message ordering for bus destinations
Reference: