Setting up the server

About this task

In this part of the tutorial, you will set up the queue manager QM_ORANGE on the server machine to enable client connections to it. This will involve configuring a server-connection channel.

Setting up the server using IBM MQ Explorer

About this task

On the server machine that hosts queue manager QM_ORANGE:

Procedure

  1. In the Navigator view, expand the Queue Managers folder.
  2. Expand QM_ORANGE.
  3. Right-click the Channels folder, then click New > Server-connection Channel.
    The New Server-connection Channel wizard opens.
  4. In the Name field, type CLIENT.QM_ORANGE then click Next.
  5. Click MCA to open the MCA page.
  6. In the MCA User ID field, type your Windows login name (or a user name in the mqm group).
  7. Click Finish.

Results

The new server-connection channel is displayed in the Content view.

What to do next

For more information about the MCAUSER ID, see Access control for clients in IBM® Knowledge Center.

Setting up the server using MQSC

About this task

Open a command prompt on the receiving machine and follow these steps:

Procedure

  1. Start MQSC by typing the command:
    
    runmqsc QM_ORANGE
    A message tells you that an MQSC session has started. MQSC has no command prompt.
  2. Define a server-connection channel by typing the following command on one line:
    
    define channel(CLIENT.QM_ORANGE) chltype(SVRCONN) trptype(TCP) mcauser('mqm')

    [Windows]If you are using Windows, type your Windows login name (or a valid mqm user name) in place of mqm.

    A message tells you when the channel has been created.

  3. Stop MQSC by typing:
    
    end
    Some messages are displayed followed by the command prompt.
  4. Start a listener by typing the following command:
    
    runmqlsr -t tcp 

Results

You have now finished setting up the server. The next task is to set up the client.