Home

 

4. Define the shared queue

 

Define the queue INVENTQ on POLO1 as follows:

DEFINE QLOCAL(INVENTQ) CLUSTER(INVENTORY) QSGDISP(SHARED) CFSTRUCT(STRUCTURE)

Now that you have completed all the definitions, if you have not already done so, start the channel initiator and a listener program on the new 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. Cluster and queue-sharing group

Now messages put on the INVENTQ queue by LONDON are routed alternately around the four queue managers advertised as hosting the queue.

One of the benefits of having members of a queue-sharing group hosting a cluster queue is that, if the queue manager that made the queue definition (in this case POLO1) becomes unavailable after receiving a message on the shared queue, and is unable to reply, any other member of the queue-sharing group can reply instead.

Also refer to the chapter on Intra-group queuing in the WebSphere MQ Intercommunications for details of configuring clustering with intra-group queuing.

 

Parent topic:

Procedure


qc12120_


 

Home