Verifying that the test message was sent
Before you begin
Before getting the test message from the queue, you must already have completed the following tasks in this tutorial:- Set up the server
- Set up the client on Windows and Linux
- Sending a message from a client to a server.
About this task
This topic shows how to verify that the test message was sent.We can perform this task using either of the following interfaces:Verifying that the test message was sent using IBM MQ Explorer
About this task
On the machine that hosts the queue manager QM_APPLE:Procedure
- In the Navigator view, 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 messages on Q1.
- Double-click the last message in the list 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.Verifying that the test message was sent using MQSC
About this task
The amqsget sample program is used to get the message back from the queue.Open a command prompt and start the amqsget sample program as follows:
Procedure
Start the amqsget sample program as follows:- 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
- On Windows, type the
following command:
amqsget Q1
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.