Example 2 - Requesting a trace-route reply message

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.

Figure 15. Requesting a trace-route reply message, Diagram 1
 Illustration showing:  Two queue managers QM1 and QM2, connected by two channels (QM2.TO.QM1 and QM1.TO.QM2). A trace route message being placed by DSPMQRTE in remote queue TARG.AT.QM2 of QM1.

Figure 16. Requesting a trace-route reply message, Diagram 2
 Illustration showing:  Two queue managers QM1 and QM2, connected by two channels (QM2.TO.QM1 and QM1.TO.QM2). A trace route message being sent through the MCAs from QM1 to QM2.

Figure 17. Requesting a trace-route reply message, Diagram 3
 Illustration showing:  Two queue managers QM1 and QM2, connected by two channels (QM2.TO.QM1 and QM1.TO.QM2). Trace-route messages being received from QM1 by queue manager QM2 and discarded in local queue TARGET.Q. Trace-route reply messages being returned from QM2 to QM1 and added to local queue TR.REPLY.Q.

Figure 18. Requesting a trace-route reply message, Diagram 4
 Illustration showing:  Two queue managers QM1 and QM2, connected by two channels (QM2.TO.QM1 and QM1.TO.QM2). DSPMQRTE removing trace-route reply messages from the local queue TR.REPLY.Q of QM1.

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.