e!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4//EN">
Using your own cluster workload exits
You may write your own cluster workload exit and override the WebSphere MQ default behaviour. On non-z/OS platforms, using CLWLMode=FAST each operating system process loads its own copy of the exit, and different connections to the queue manager can cause different copies of the exit to be invoked. When the exit is run in the default safe mode, CLWLMode=SAFE, a single copy of the exit runs in its own separate process. For more information on how to set CLWLMode see theWebSphere MQ System Administration Guide. Below is the round robin algorithm which WebSphere MQ uses by default.
Algorithm: The steps in choosing a destination for a message:
- If a queue name is specified, eliminate queues that are not PUT enabled.
Eliminate remote instances of queues that do not share a cluster with the local queue manager.
Eliminate remote CLUSRCVR channels that are not in the same cluster as the queue.
- If a queue manager name is specified, eliminate queue manager alias' that are not PUT enabled.
Eliminate remote CLUSRCVR channels that are not in the same cluster as the local queue manager.
- If the result above contains the local instance of the queue, choose it.
- If the message is a cluster PCF message, eliminate any queue manager you have already sent a publication or subscription to.
- If only remote instances of a queue remains, choose Resumed queue managers over Suspended ones.
- If more than one remote instance of a queue remains, include all MQCHS_INACTIVE and MQCHS_RUNNING channels.
- If less than one remote instance of a queue remains, include all MQCHS_BINDING, MQCHS_INITIALIZING, MQCHS_STARTING, and MQCHS_STOPPING channels.
- If less than one remote instance of a queue remains, include all MQCHS_RETRYING channels.
- If less than one remote instance of a queue remains, include all MQCHS_REQUESTING, MQCHS_PAUSED and MQCHS_STOPPED channels.
- If more than one remote instance of a queue remains and the message is a cluster PCF message, choose locally defined CLUSSDR channels.
- If more than one remote instance of a queue remains to any queue manager, choose channels with the highest NETPRTY to each queue manager.
- If more than one remote instance of a queue remains, choose the least recently used channel.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.