Add message to local queue in WebSphere MQ

Home > Search
  by

If using MQ Explorer

Put a message in a local queue.

  1. In the left panel of MQ Explorer, expand Queue Managers > your local queue manager.
  2. Select the Queues folder.
  3. Right-click on a queue and select Put Test Message.
  4. Type a message, such as Hello World, and select Put message.

In this example, the message Hello World is put into QUEUE01.

 

 

View messages in a local queue.

  1. In the left panel of MQ Explorer, expand Queue Managers > your local queue manager.
  2. Select the Queues folder.
  3. Right-click on a queue and select Browse Message.

In this example, the message Hello World is in QUEUE01.

 


If using Linux command line

Switch to the mqm user.

~]# su - mqm

 

Start the amqsput utility. This assumes the name of the local queue is QUEUE01 and the name of the manager queue is MANAGER01.

~]# /opt/mqm/samp/bin/amqsput QUEUE01 MANAGER01

 

Type a message, such as Hello World, and press enter twice.

Hello World

 

The amqsget command can be used to see that message Hello World is in QUEU01.

~]# /opt/mqm/samp/bin/amqsput QUEUE01 MANAGER01
. . .
message <Hello World>

 

Return to your user account.

~]# exit


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments