Putting a test message on the queue

Before you begin

Before putting a test message on the queue, you must already have completed the following tasks in this tutorial:

About this task

This topic shows how to put a test message on the remote queue.

You can perform this task using only the MQSC command-line interface: Putting a test message onto the queue

Putting a test message onto the queue

About this task

Perform this task on the sending machine (the machine that hosts the queue manager QM_ORANGE).

The amqsput sample program is used to put a message onto the queue that you created:
  • [Windows]On Windows, the sample programs are installed by default with IBM® MQ Server or Client.
  • [Linux]On Linux, the samples programs RPM need to be installed.

Open a command prompt and follow these steps:

Procedure

  1. Start the amqsput sample program as follows:
    • [Windows]On Windows, type the command:
      amqsput Q1 QM_ORANGE
    • [Linux]On Linux, change to the /opt/mqm/samp/bin directory and type the command:
       ./amqsput Q1 QM_ORANGE
    The following messages are displayed:

    Sample amqsput0 start
    target queue is Q1

  2. Type some message text on one or more lines, then press Enter twice. The following message is displayed:

    Sample amqsput0 end

Results

You have now created a test message and put it onto the remote queue. The next task is to verify that the test message was received.

Task Task

Feedback

Timestamp icon Last updated: Wednesday, 14 February 2018
http://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.explorer.doc/com.ibm.mq.explorer.doc/bi00253_.htm