FreeKB - Add message to local queue in IBM MQ
Add message to local queue in IBM MQ

Home > Search


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.

 

You can also use MQ Explorer to view the messages in a queue.

 


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

 

You can use the amqsget command to view the messages in a queue.

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 1886b in the box below so that we can be sure you are a human.




Comments