Adding a queue manager to a cluster by using DHCP
Add a queue manager to a cluster, using DHCP. The task demonstrates omitting CONNAME value on a CLUSRCVR definition.
Before you begin
- The ability to omit the CONNAME value on a CLUSRCVR definition.
- The ability to use
+QMNAME+
on a CLUSSDR definition.
- The
INVENTORY
cluster has been set up as described in Setting up a new cluster. It contains two queue managers,LONDON
andNEWYORK
, which both hold full repositories. - A new branch of the chain store is being set up in Paris and you
want to add a queue manager called
PARIS
to the cluster. - Queue manager
PARIS
sends inventory updates to the application running on the system in New York by putting messages on the INVENTQ queue. - Network connectivity exists between all three systems.
- The network protocol is TCP.
- The
PARIS
queue manager system uses DHCP, which means that the IP addresses might change on system restart. - The channels between the
PARIS
andLONDON
systems are named according to a defined naming convention. The convention uses the queue manager name of the full repository queue manager onLONDON
. - Administrators of the
PARIS
queue manager have no information about the name of the queue manager on theLONDON
repository. The name of the queue manager on theLONDON
repository is subject to change.
About this task
Procedure
Results
The cluster set up by this task is the same as for Adding a queue manager to a cluster:
By making only two definitions, a CLUSRCVR definition and a CLUSSDR definition, we have added the queue manager PARIS
to the cluster.
On the PARIS
queue manager, the CLUSSDR containing the string +QMNAME+
starts. On the LONDON
system IBM MQ resolves the +QMNAME+
to the queue manager name ( LONDON
). IBM MQ then matches the definition for a channel called INVENTORY.LONDON
to the corresponding CLUSRCVR definition.
IBM MQ sends back the resolved channel name to the PARIS
queue manager. At PARIS
, the CLUSSDR channel definition for the channel called INVENTORY.+QMNAME+
is replaced by an internally generated CLUSSDR definition for INVENTORY.LONDON
. This definition contains the resolved channel name, but otherwise is the same as the +QMNAME+
definition that you made. The cluster repositories are also brought up to date with the channel definition with the newly resolved channel name.
- The channel created with the
+QMNAME+
name becomes inactive immediately. It is never used to transmit data. - Channel exits might see the channel name change between one invocation and the next.
Now the PARIS
queue manager learns, from the repository at LONDON
, that the INVENTQ
queue is hosted by queue manager NEWYORK
. When an application hosted by the system in Paris tries to put messages to the INVENTQ, PARIS
automatically defines a cluster-sender channel to connect to the cluster-receiver channel INVENTORY.NEWYORK
. The application can receive responses when its queue manager name is specified as the target queue manager and a reply-to queue is provided.