This example is the same as Example 1 - Requesting activity reports, except that QM2 now has the value of the ACTIVREC queue manage attribute set to QUEUE. Channel QM1.TO.QM2 must have been restarted for this to take effect.
This example demonstrates how to detect when activity reports are delivered to queues other than the reply-to queue. Once detected, the WebSphere MQ display route application is used to read activity reports from another queue.
The output that is displayed follows:
AMQ8653: DSPMQRTE command started with options '-m QM1 -q TARG.AT.QM2 -rq ACTIV.REPLY.Q -v outline identifiers'. AMQ8659: DSPMQRTE command successfully put a message on queue 'QM2', queue manager 'QM1'. AMQ8674: DSPMQRTE command is now waiting for information to display. -------------------------------------------------------------------------------- Activity: ApplName: 'cann\output\bin\dspmqrte.exe' Operation: OperationType: Put Message: MQMD: MsgId: X'414D51204C4152474551202020202020A3C9154220001502' CorrelId: X'414D51204C4152474551202020202020A3C9154220001503' QMgrName: 'QM1 ' QName: 'TARG.AT.QM2 ' ResolvedQName: 'QM2 ' RemoteQName: 'TARGET.Q ' RemoteQMgrName: 'QM2 ' -------------------------------------------------------------------------------- Activity: ApplName: 'cann\output\bin\runmqchl.EXE' Operation: OperationType: Get
Message: MQMD: MsgId: X'414D51204C4152474551202020202020A3C9154220001505' CorrelId: X'414D51204C4152474551202020202020A3C9154220001502' EmbeddedMQMD: MsgId: X'414D51204C4152474551202020202020A3C9154220001502' CorrelId: X'414D51204C4152474551202020202020A3C9154220001503' QMgrName: 'QM1 ' QName: 'QM2 ' ResolvedQName: 'QM2 ' Operation: OperationType: Send Message: MQMD: MsgId: X'414D51204C4152474551202020202020A3C9154220001502' CorrelId: X'414D51204C4152474551202020202020A3C9154220001503' QMgrName: 'QM1 ' RemoteQMgrName: 'QM2 ' ChannelName: 'QM1.TO.QM2 ' ChannelType: Sender XmitQName: 'QM2 ' -------------------------------------------------------------------------------- AMQ8652: DSPMQRTE command has finished.
dspmqrte -m QM2 -q SYSTEM.ADMIN.ACTIVITY.QUEUE -i 414D51204C4152474551202020202020A3C9154220001502 -v outlinewhere 414D51204C4152474551202020202020A3C9154220001502 is the MsgId of the trace-route message that was put.
The output that is displayed follows:
AMQ8653: DSPMQRTE command started with options '-m QM2 -q SYSTEM.ADMIN.ACTIVITY.QUEUE -i 414D51204C4152474551202020202020A3C915420001502 -v outline'. AMQ8674: DSPMQRTE command is now waiting for information to display. -------------------------------------------------------------------------------- Activity: Activity information unavailable. -------------------------------------------------------------------------------- Activity: ApplName: 'cann\output\bin\AMQRMPPA.EXE' Operation: OperationType: Receive QMgrName: 'QM2 ' RemoteQMgrName: 'QM1 ' ChannelName: 'QM1.TO.QM2 ' ChannelType: Receiver Operation: OperationType: Discard QMgrName: 'QM2 ' QName: 'TARGET.Q ' Feedback: NotDelivered -------------------------------------------------------------------------------- AMQ8652: DSPMQRTE command has finished.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzax0591 |