Configure the third queue manager
Use the MQSC interface to define a listener and a receiver channel for PS3. Join PS3 into the cluster by defining a sender channel from PS3 to one of the full repository queue managers.
Before starting
This task assumes that we have completed the steps in Configure the second queue manager.
Procedure
- Define and start a listener for PS3.
- Launch the MQSC interface. In the command line, enter the following command:
runmqsc PS3- Define a listener. Enter the following MQSC command:
DEFINE LISTENER(PS3_LS) TRPTYPE(TCP) CONTROL(QMGR) PORT(5002)- Start the listener. Enter the following MQSC command:
START LISTENER(PS3_LS)
- Define a receiver channel for PS3, to allow other queue managers in the cluster to communicate with it. Enter the following MQSC command:
DEFINE CHANNEL(DEMO.PS3) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME('$HOSTNAME(5002)') CLUSTER(DEMO) DESCR('TCP Cluster-receiver channel for queue manager PS3')- Define a sender channel from PS3 to one of the full repository queue managers (for example, PS1 ). This joins PS3 into the cluster. Enter the following MQSC command:
DEFINE CHANNEL(DEMO.PS1) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME('$HOSTNAME(5000)') CLUSTER(DEMO) DESCR('TCP Cluster-sender channel from PS3 to PS1')- Validate that PS3 has successfully joined the cluster. Enter the following MQSC command:
DISPLAY CLUSQMGR(*) QMTYPEThis command returns three entries, one each for QM1, QM2 and QM3. QM1 and QM2 should have a QMTYPE of REPOS, and QM3 should have a QMTYPE of NORMAL.
What to do next
You are now ready to define a cluster topic. Parent topic: Publish/subscribe cluster scenario Previous topic: Configure the second queue manager Next topic: Defining cluster topics