In this example the WebSphere MQ display route application connects to queue manager, QM1, and is used to generate and deliver a trace-route message to the target queue, TARGET.Q, on remote queue manager, QM2. The necessary option is specified so that activity information is accumulated in the trace-route message. On arrival at the target queue a trace-route reply message is requested, and the trace-route message is discarded.
dspmqrte -m QM1 -q TARG.AT.QM2 -rq TR.REPLY.Q -ac -ar -ro discardQM1 is the name of the queue manager to which the WebSphere MQ display route application connects, TARG.AT.QM2 is the name of the target queue, and ACTIV.REPLY.Q is the name of the queue to which it is requested that all responses to the trace-route message are sent. The -ac option specifies that activity information is accumulated in the trace-route message, the -ar option specifies that all accumulated activity is sent to the reply-to queue that is specified by the -rq option (that is, TR.REPLY.Q). The -ro option specifies that report option MQRO_DISCARD_MSG is set which means that activity reports are not generated in this example.
The output that is displayed follows:
AMQ8653: DSPMQRTE command started with options '-m QM1 -q TARG.AT.QM2 -rq TR.REPLY.Q'. AMQ8659: DSPMQRTE command successfully put a message on queue 'QM2', queue manager 'QM1'. AMQ8674: DSPMQRTE command is now waiting for information to display. AMQ8666: Queue 'QM2' on queue manager 'QM1'. AMQ8666: Queue 'TARGET.Q' on queue manager 'QM2'. AMQ8652: DSPMQRTE command has finished.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzax0590 |