+

Search Tips | Advanced Search

Set up the server


About this task

In this part of the tutorial, we 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. This task can be achieved by using either:

Parent topic: Tutorial 3: Sending a message on a client-server configuration Next topic: Set up the client on Windows and Linux


Set 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.


Set 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')

    If we 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

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

Last updated: 2020-10-04