C2180-374 · Question #137
An administrator has defined MQ objects on 3 queue manager QM1, QM2, QM3 as follows. An application connects to QM1 and puts the message on MY.ALIAS.QUEUE. On which queue will the message end up? QM…
The correct answer is A. QM2 on QM1. See the full explanation below for the reasoning.
Question
An administrator has defined MQ objects on 3 queue manager QM1, QM2, QM3 as follows. An application connects to QM1 and puts the message on MY.ALIAS.QUEUE. On which queue will the message end up? QM QM1:
DEFINE QALIAS (MY.ALIAS.QUKUE) TARGET (YELLOW.QUEUE) DEFINE QREMOTE (YELLOW.QUEUE) RNAME (YELLOW) RQMNAME (QM2) + XMITQ (QM2) DEFINE QLOCAL (QM2) USAGE (XMITO) DEFINE QLOCAL (QM3) USAGE (XMITO) DEFINE QLOCAL (DLQ) ALTER QALIAS (MY.ALLAS.QUEUE) TARGET (ORANGE.QUEUE) FORCE DEFINE CHANNEL (QM1.TO.QM2) CHLTYPE (SDR) TRPTYPE (TCP) REPLACE+ DESCE (Sender channel to QM2') XMITQ (QM2) + CONNAME (9.20.9.32 (1412) ) DEFINE CHANNEL (QM1.TO.QM3) CHLTYPE (SDR) TRPYPE (TCP) REPLACE + DESCR (Sender channel to QM3') XMITQ (QM3) + CONNAME (9.20.9.33 (1415) ) QM QM2:
DEFINE QLOCAL (YELLOW) DEFINE QLOCAL (DLQ) DEFINE CHANNEL (QMQ.TO.QM2) CHLTYPE (RCVR) TRPTYPE (TCP) + REPLACE DESCR (`Receiver channel from QM1') QM QM3:
DEFINE QLOCAL (ORANGE) DEFINE QLOCAL (DLQ) DEFINE CHANNEL (QM1.TO.QM3) CHLTYPE (RCVR) TRPTYPE (TCP) + REPLACE DESCR (`Receiver channel from QM1')
Options
- AQM2 on QM1
- BDLQ on QM1
- CYELLOW on QM2
- DORANGE on QM3
How the community answered
(26 responses)- A73% (19)
- B8% (2)
- C4% (1)
- D15% (4)
Community Discussion
No community discussion yet for this question.