Set up the receiver server

 

After you have completed the task, Set up the sender server, follow these steps to set up the receiver server:

  1. Log in as a user in the mqm group.

  2. Create a default queue manager called venus.queue.manager by entering the following command:
    crtmqm -q venus.queue.manager
    Messages tell you that the queue manager has been created, and that the default WebSphere MQ objects have been created.

  3. To start the queue manager, type:
    strmqm
    A message tells you when the queue manager has started.

  4. Enable MQSC commands by typing:
    runmqsc
    A message tells you that an MQSC session has started. MQSC has no command prompt.

  5. Define a local queue called ORANGE.QUEUE by entering the following command:
    define qlocal (orange.queue)
    A message tells you when the queue has been created.

  6. Define a listener by entering the following command:

    If you do not specify the port that the listener should listen on, the default of 1414 is used. If you specified a port other than 1414 in step 7 of Set up the sender server, include the port parameter in the command, as shown below.

    define listener (listener1) trptype (tcp) control (qmgr) port (port_number)
    Where

    port_number

    is the name of the port the listener should run on. This must be the same as the number used when defining your sender channel.

  7. Start the listener by entering the following command:
    start listener (listener1)

    It is not recommended to start the listener in the background from any shell that automatically lowers the priority of background processes.

  8. Define a receiver channel with the following command:
    define channel (first.channel) chltype (rcvr) trptype (tcp)
    A message tells you when the channel has been created.

  9. End MQSC by typing:
    end
    Some messages are displayed, followed by the prompt.

You have now defined the following objects:

Now to test communications between your sender and receiver workstations, see Testing communication between the servers.

 

Parent topic:

Verifying a server-to-server installation


hq10460_