Testing communication between workstations

 

Before you complete this task have completed, Set up the client workstation.

On the WebSphere MQ client workstation, use the amqsputc sample program to put a message on the queue at the server workstation, and the amqsgetc sample program to get the message from the queue back to the client:

  1. Change into the /opt/mqm/samp/bin directory, which contains the sample programs.

  2. Put a message on the queue at the server using the following command:
      ./amqsputc QUEUE1 saturn.queue.manager
    This displays the following messages:
    Sample amqsput0 start
    target queue is QUEUE1

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

  4. To get the message from the queue located on the server, enter the following command:
      ./amqsgetc QUEUE1 saturn.queue.manager
    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 client installation.

 

Parent topic:

Verifying the client installation


sq10750_