Home
Putting to a queue manager outside the cluster
Figure 1. Putting to a queue manager outside the cluster
Now let us consider how to put a message from QM2, which is inside the cluster, to the queue Q3 at QM3, which is outside the cluster.
The gateway, in this example QM1, has a QREMOTE definition that advertises the remote queue (Q3) to the cluster:
DEFINE QREMOTE(Q3) RNAME(Q3) RQMNAME(QM3) CLUSTER(DEMO)It also has a sender channel and a transmission queue to the queue manager that is outside the cluster. QM3 has a corresponding receiver channel. These are not shown in Figure 1.
To put a message, an application on QM2 issues an MQPUT call specifying the target queue name (Q3) and specifying the name of the queue to which replies are to be sent (Q2). The message is sent to QM1, which uses its remote-queue definition to resolve the queue name to Q3 at QM3.
You may define more than one route out of a cluster.
Parent topic:
Examples of using aliases within clusters
qc10880_
Home