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.
- Switch to the Debug perspective.
- On the workbench toolbar, click the arrow on the Get
a message from a Queue icon
.
- On the drop-down menu, click Get Message... to
invoke the Dequeue Message window.
- Enter the names for the queue manager and (output node) queue that
you want.
- Click Read From Queue to read a message
from the queue.
- After closing the window, the next time that you click the arrow
on the Get a message from a Queue icon
, 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.
- 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.