WebSphere MQ includes a sample cluster workload exit program. You can copy this sample and use it as a basis for your own programs.
AIX(R) | /usr/mqm/samp |
HP-UX, Sun Solaris | /opt/mqm/samp |
Windows | C:\Program Files\Websphere MQ\Tools\c\Samples
(Where C is the drive on which you have installed the product.) |
iSeries | The qmqm library |
This sample exit routes all messages to a particular queue manager, unless that queue manager becomes unavailable. It reacts to the failure of the queue manager by routing messages to another queue manager.
You indicate which queue manager you want messages to be sent to by supplying the name of its cluster-receiver channel in the CLWLDATA attribute on the queue-manager definition. For example:
ALTER QMGR CLWLDATA('TO.myqmgr')
To enable the exit, supply its full path and name in the CLWLEXIT attribute:
On UNIX(R) systems:
ALTER QMGR CLWLEXIT('path/amqswlm(clwlFunction)')
On Windows(R):
ALTER QMGR CLWLEXIT('path\amqswlm(clwlFunction)')
On z/OS(R):
ALTER QMGR CLWLEXIT(CSQ4BxF1)
where x is either 'A' or 'C', depending on the programming language of the version you are using.
On OS/400(R):
Enter the MQSC command:
ALTER QMGR CLWLEXIT('AMQSWLM library ')
(both the program name and the library name occupy 10 characters and are blank-padded to the right if necessary). Alternatively, use the CL command:
CHGMQM MQMNAME(qmgrname) CLWLEXIT('library/AMQSWLM')
Now, instead of using the supplied workload management algorithm, WebSphere MQ calls this exit to route all messages to your chosen queue manager.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzah0735 |