16. Receive (GET) the message on QM2

Now that a message has been put to the queue from QM1, you can get the message from QM2.

Receiving a message using MQe_Script:

You can use the following MQe_Script command to get the message from the queue:
mqe_script_msg -get -qname Q2 -qmname QM2

Receiving a message programmatically:

For more information on using Java or C to get a message from a queue, see Get. For examples, see Example (Java) - assured get and Example (C) - assured get.

Parent topic: Walkthrough: creating a basic application
Previous topic: 15. Send (PUT) a message from QM1 to QM2
Next topic: 17. Displaying details of MQe objects