Home
6. Define the cluster queue INVENTQ
Define the INVENTQ queue on the NEWYORK queue manager, specifying the CLUSTER keyword.
DEFINE QLOCAL(INVENTQ) CLUSTER(INVENTORY)1 : DEFINE QLOCAL(INVENTQ) CLUSTER(INVENTORY) AMQ8006: Websphere MQ queue created.The CLUSTER keyword causes the queue to be advertised to the cluster. As soon as the queue is defined it becomes available to the other queue managers in the cluster. They can send messages to it without having to make a remote-queue definition for it.
Now that you have completed all the definitions, if you have not already done so start the channel initiator on WebSphere MQ for z/OS and, on all platforms, start a listener program on each queue manager. The listener program listens for incoming network requests and starts the cluster-receiver channel when it is needed. See Establishing communication in a cluster for more information.
The cluster set up by this task looks like this:
Figure 1. The INVENTORY cluster with two queue managers
Clearly, this is a very small cluster. However, it is useful as a proof of concept. The important thing to understand about this cluster is the scope it offers for future enhancement.
If you are converting an existing network into a cluster like this, in step 6, we need to alter the existing queue definition. You also need to delete the remote queue definition at LONDON for the INVENTQ queue. See Task 6: Converting an existing network into a cluster for an example of this.
Parent topic:
Procedure
qc10540_
Home