Getting a test message

Before you start

Complete 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 the WebSphere MQ explorer or command line interfaces to get a message.

To create and use a dequeue configuration:

  1. Switch to the Flow 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.

Related concepts
Flow debugger overview

Related tasks
Putting a test message
Debugging a message flow
Working with breakpoints
Stepping through flow instances
Debugging data

Related reference
Flow debugger shortcuts
Flow debugger icons and symbols