Testing communication between the servers

 

After completing, Set up the sender server, and Setting up the receiver server, use this topic to test communications between sender and receiver workstations using sample programs. Use the amqsput sample program to put a message from the sender server to a queue at the receiver server, and the amqsget sample program on the receiver server to get the message from the queue:

  1. Log in to both servers as a user in the mqm group.

  2. If the queue managers on the two servers have stopped, restart them now by typing the following on both servers:
    strmqm

  3. On the sender server, type runmqsc at the command line, then type:
    START CHANNEL(FIRST.CHANNEL)
    The receiver channel on the receiver server starts automatically when the sender channel starts.

  4. On the sender server, change into the directory, which contains the sample programs.

  5. To put a message on the local definition of the remote queue (which in turn specifies the name of the remote queue)...
     ./amqsput LOCAL.DEF.OF.REMOTE.QUEUE
    You will see the following messages:
    Sample amqsput0 start
    target queue is LOCAL.DEF.OF.REMOTE.QUEUE

  6. Type some message text on one or more lines, followed by a blank line. You will see the following message:
     Sample amqsput0 end
    Your message is now on the queue and the command prompt is displayed again.

  7. On the receiver server, change into the /opt/mqm/samp/bin directory, which contains the sample programs.

  8. To get the message from the queue at the receiver, enter the following command:
    ./amqsget ORANGE.QUEUE
    The sample program starts, and your message is displayed. After a pause, the sample ends and the command prompt is displayed again.

You have now successfully verified the server-to-server installation.

 

Parent topic:

Verifying a server-to-server installation


sq10480_