+

Search Tips   |   Advanced Search

Strict message ordering using non-ASF listener ports

Strict message ordering can be achieved when deploying message driven bean applications to the IBM MQ messaging provider when no special facilities have been coded into the application to handle messages arriving out of order.

For WebSphere Application Server v7 and later, listener ports are stabilized. We should plan to migrate the IBM MQ message-driven bean deployment configurations from using listener ports to using activation specifications. For more information about how to configure activation specifications for non-ASF mode, see Configure activation specifications for non-ASF mode. However, we should not begin this migration until we are sure the application does not have to work on application servers earlier than WAS v7. For example, if we have an application server cluster with some members at v6.1 and some at a later version, we should not migrate applications on that cluster to use activation specifications until after we migrate all the application servers in the cluster to the later version.

The following assumptions have been made in this scenario:


WAS configuration for ordered delivery


Messages can be delivered out of order with this deployment during a transaction recovery

A specific set of events must occur in a specific order for this scenario to be encountered, and as such it is uncommon. However, if ordered message delivery is critical to the operation of the application, the consider it.


Considerations for clustered deployment

When using non-ASF listener ports we can set the default share (DEFSOPT) option on the queue to exclusive. If we choose this option when we are performing a clustered deployment of an application, all but one of the cluster members fail to start their listener ports. The cluster members generate a 2042MORC_OBJECT_IN_USE exception, in a WMSG0057E message.

When this exception occurs we can then establish automatic failover for the application by configuring the following message listener service custom property in WAS:

MAX.RECOVERY.RETRIES

Configure a high value MAX.RECOVERY.RETRIES on the message listener services of all the servers in the cluster. The maximum value for MAX.RECOVERY.RETRIES is 2147483647.

The MAX.RECOVERY.RETRIES message listener service custom property must be accompanied by a suitable MAX.RECOVERY.INTERVAL message listener service custom property. The maximum amount of time a listener port can retry without being manually stopped and restarted is 2147483647 times the value specified for MAX.RECOVERY.INTERVAL. In this configuration each cluster member continuously attempts to start its listener port, until the active cluster member stops and the queue manager allows it to connect as a single exclusive consumer.


Related:

  • Strict message ordering using activation specifications or ASF listener ports connected to IBM MQ v7.x
  • Strict message ordering using activation specifications or ASF listener ports connected to IBM MQ v6.0
  • Message processing in ASF mode and non-ASF mode
  • Starting a listener port
  • Starting listener ports using scripting
  • Manage the message endpoint lifecycle
  • Manage message endpoints
  • Tune messaging destinations for the IBM MQ messaging provider
  • Configure activation specifications for non-ASF mode
  • Use wsadmin scripting
  • Avoiding transaction timeouts in non-ASF mode
  • Message listener service custom properties
  • Message-driven beans - listener port components
  • Listener port settings
  • Stabilized features of WAS traditional