WebSphere Message Brokers
File: ag16720_
Writer: John Morris-Smith

Task topic

This build: July 31, 2007 21:29:54

Getting a test message

Before you start

To complete this task, you must have completed the following tasks:

While you are debugging your message flow, you might want to read a message from the queue on your MQOutput node. This topic tells you how to get a test message by configuring and using a dequeue file in the workbench. This is an easy and repeatable alternative to using command line interfaces or WebSphere MQ Explorer (with WebSphere MQ Version 6) or WebSphere MQ Services (with WebSphere MQ Version 5) to get a message.

  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 names for the queue manager and (output node) queue that you want.
  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 the Save As... button, and in the Save Message As window, select the flow project and enter a name for the file, including a .extension if you want one.
Tip: 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.
When you have successfully put and retrieved test messages, you can use other functions provided by the debugger to debug your flow more comprehensively; continue with Working with breakpoints in the debugger.
Related concepts
Flow debugger overview
Related tasks
Putting a test message
Working with breakpoints in the debugger
Related reference
Flow debugger shortcuts
Flow debugger icons and symbols
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:29:54

ag16720_ This topic's URL is: