Getting a message from the queue LQ1
Get a message from the queue LQ1
, for
use with the Getting started with IBM® WebSphere® MQ Version 7.5 scenario,
by using either the command-line interface or IBM WebSphere MQ Explorer.
About this task
Getting a message from the queue using the command-line interface
To get a message from the queue by using the command-line interface, complete the following steps:
Procedure
LQ1
, by typing the
following command: amqsget LQ1 QM1
C:\>amqsget LQ1 QM1
Sample AMQSGET0 start
message <Hello World>
no more messages
Sample AMQSGET0 end
The amqsget application
ends 30 seconds after reading the message.What to do next
To learn about writing queuing applications, connecting to and disconnecting from a queue manager, publish/subscribe, and opening and closing objects, see Writing a queuing application.
Getting a message from the queue by using IBM WebSphere MQ Explorer
To get a message from the queue by using the IBM WebSphere MQ Explorer, complete the following steps:
Procedure
What to do next
To learn about writing queuing applications, connecting to and disconnecting from a queue manager, publish/subscribe, and opening and closing objects, see Writing a queuing application.