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