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:
- Change into the /opt/mqm/samp/bin directory, which contains the sample programs.
- Put a message on the queue at the server using the following command:
./amqsputc QUEUE1 saturn.queue.managerThis displays the following messages:Sample amqsput0 start target queue is QUEUE1- Type some message text on one or more lines, followed by a blank line. You will see the following message:
Sample amqsput0 endYour message is now on the queue and the command prompt is displayed again.- To get the message from the queue located on the server, enter the following command:
./amqsgetc QUEUE1 saturn.queue.managerThe 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
lq10830_