+

Search Tips | Advanced Search

Configure the second queue manager

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.


Before starting

This task assumes that we have completed the steps in Configure the first queue manager.


Procedure

  1. Define and start a listener for PS2.
    1. Launch the MQSC interface. In the command line, enter the following command:
       runmqsc PS2
      
    2. Define a listener. Enter the following MQSC command:
      DEFINE LISTENER(PS2_LS) TRPTYPE(TCP) CONTROL(QMGR) PORT(5001)
      
    3. Start the listener. Enter the following MQSC command:
       START LISTENER(PS2_LS)
      

  2. Set the queue manager as a full repository for the cluster. Enter the following MQSC command:
     ALTER QMGR REPOS(DEMO)
    
  3. 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')
    
  4. 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. Parent topic: Publish/subscribe cluster scenario Previous topic: Configure the first queue manager Next topic: Configure the third queue manager

Last updated: 2020-10-04