Testing the installation

Before completing this task you must have created a queue manager called venus.queue.manager and a local queue called ORANGE.QUEUE. For instructions on how to do this see Setting up the installation.
To test the queue manager and queue, use the amqsput sample program to put a message on the queue, and the amqsget sample program to get the message back from the queue:
  1. Log on as a user in group mqm, if you are not already.
  2. Change into the /opt/mqm/samp/bin directory, which contains the sample programs.
  3. Put a message on the queue using the following command:
    ./amqsput ORANGE.QUEUE
    The following messages are displayed:
    Sample AMQSPUT0 start
    target queue is ORANGE.QUEUE
  4. Type some message text, on one or more lines, followed by a blank line. The following message is displayed:
    Sample AMQSPUT0 end 
    Your message is now on the queue and the command prompt is displayed again.
  5. To get the message from the queue, use 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 your local installation.