Debug: getting a test message from an output queue

You can get a message from an output queue to test a message flow that you are debugging.

Before you start

Completed the following tasks:

If your message flow includes MQInput and MQOutput nodes, you can test the flow by putting a message on the input queue of your first MQInput node and retrieving it from an MQOutput node.

You can use the command line interfaces or WebSphere® MQ Explorer (if you have WebSphere MQ Version 6 installed) or WebSphere MQ Services (if you have WebSphere MQ Version 5.3 installed) to get a message from an output queue.

You can also use the Test Client as a repeatable alternative. To use the Test Client, complete the following steps:

  1. Switch to the Debug perspective.
  2. On the workbench toolbar, click the arrow on the Get a message from a Queue icon Get a message from a Queue.
  3. On the drop-down menu, click Get Message... to invoke the Dequeue Message window.
  4. Enter the name of the queue manager and output node queue.
  5. Click Read From Queue to read a message from the queue.
  6. After closing the window, the next time that you click the arrow on the Get a message from a Queue icon Get a message from a Queue, you see the dequeue configuration that you created above listed on the drop-down menu. Click this file on the menu (or if it is number 1 on the menu, just click the icon itself) to get a message from the queue.
  7. Optional: While the Dequeue Message window is open, you can save a read message into a file in your message flow project to keep it for later. Click Save As..., and in the Save Message As window, select the flow project and enter a name for the file, including an extension if you want one.

If you saved any messages into files and want to see these saved messages, switch to the Broker Application Development perspective and expand the navigation tree for your flow project. Double-click a saved message file to open it in a view.

Related concepts
Flow debugger overview
Related tasks
Debug: putting a test message on an input queue
Working with breakpoints in the flow debugger
Related reference
Flow debugger shortcuts
Flow debugger icons and symbols
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2009Copyright IBM Corporation 1999, 2009.
Last updated : 2009-01-07 15:21:55

ag16720_