Use the MQSC interface to define a listener and a receiver channel for PS2, to set the queue manager as a full repository for the cluster, and to define a sender channel from PS2 to PS1 so the two full repositories can exchange information.
Procedure
-
Define and start a listener for PS2.
-
Launch the MQSC interface.
In the command line, enter the following command:
runmqsc PS2
-
Define a listener.
Enter the following MQSC command:
DEFINE LISTENER(PS2_LS) TRPTYPE(TCP) CONTROL(QMGR) PORT(5001)
-
Start the listener.
Enter the following MQSC command:
START LISTENER(PS2_LS)
-
Set the queue manager as a full repository for the cluster.
Enter the following MQSC command:
ALTER QMGR REPOS(DEMO)
-
Define a receiver channel for PS2, to allow other queue managers in the cluster to communicate with it.
Enter the following MQSC command:
DEFINE CHANNEL(DEMO.PS2) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME('$HOSTNAME(5001)') CLUSTER(DEMO)
DESCR('TCP Cluster-receiver channel for queue manager PS2')
-
Define a sender channel from PS2 to PS1, to allow the two full repositories to exchange information.
Enter the following MQSC command:
DEFINE CHANNEL(DEMO.PS1) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME('$HOSTNAME(5000)') CLUSTER(DEMO)
DESCR('TCP Cluster-sender channel from PS2 to PS1')
What to do next
You are now ready to configure the third queue manager.