+

Search Tips | Advanced Search

Configure the first queue manager

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.


Before starting

This task assumes that we have completed the steps in Create and starting the queue managers.


Procedure

  1. Define and start a listener for PS1.
    1. Launch the MQSC interface. In the command line, enter the following command:
       runmqsc PS1
      
    2. Define a listener. Enter the following MQSC command:
       DEFINE LISTENER(PS1_LS) TRPTYPE(TCP) CONTROL(QMGR) PORT(5000)
      
    3. Start the listener. Enter the following MQSC command:
       START LISTENER(PS1_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 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')
    
  4. 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. Parent topic: Publish/subscribe cluster scenario Previous topic: Create and starting the queue managers Next topic: Configure the second queue manager

Last updated: 2020-10-04