Verifying that the test message was sent using IBM MQ Explorer
Procedure
- In the Navigator view, expand the Queue Managers folder, then expand QM_APPLE.
- Click the Queues folder.
- In the Content view, right-click Q1, then click Browse Messages. The Message browser opens to show the list of the messages that are currently on Q1.
- Double-click the last message to open its properties dialog.
Results
On the Data page of the properties dialog, the Message data field displays the content of the message in human-readable form, as shown in the following screen capture:
Verifying that the test message was sent
About this task
The amqsget sample program is used to get the message back from the queue.
Open a command prompt and follow these steps:
Procedure
Start the amqsget sample program:- On Windows, type the
following command:
amqsget Q1 QM_APPLE
- On Linux , change to the
MQ_INSTALLATION_PATH/samp/bin directory,
where MQ_INSTALLATION_PATH represents the high-level directory
in which IBM MQ is installed. Type the following
command:
./amqsget Q1 QM_APPLE
Results
The sample program starts, and your message is displayed along with any other messages on this queue. After a pause of 15 seconds, the sample ends and the command prompt is displayed again.
You have now completed this tutorial.