Running the NumCompute sample

Before you can run this sample, you must complete the tasks described in Setting up the user-defined extension sample.

Input message:

To view the XML input message see NumCompute input message.

Run the sample

  1. In the Broker Application Development perspective of the Message Brokers Toolkit, open the test message enqueue file called UDESampleNumComputeMessage.
  2. Click Write to queue. The input message is sent to the UDESAMPLE.NUMCOMPUTE.IN queue. The message flow transforms the message by using the NumComputeNode and routes it to the UDESAMPLE.NUMCOMPUTE.OUT queue.
  3. Verify that the message has reached the correct queue (If you are using WebSphere MQ V5.3 on Linux, go straight to Step 4 because WebSphere MQ Explorer is not available.):
    1. Start WebSphere MQ Explorer.
    2. Expand the folders under the WBRK6_DEFAULT_QUEUE_MANAGER queue manger, then click the queue manager's Queues folder.
    3. Refresh the queue display to show the current number of messages on each queue. If you are using WebSphere MQ V5.3, when refreshing the queue display, ensure the Queues folder is selected and not an actual queue name. If you select a queue name only, not all of the queues will be refreshed.
    4. Look at the UDESAMPLE.NUMCOMPUTE.OUT queue. A new message should appear on this queue.
  4. To view the output message, go back to the Message Brokers Toolkit and click the Get a message from a Queue button on the toolbar.
  5. Enter the following queue manager name:

    WBRK6_DEFAULT_QUEUE_MANAGER

  6. Enter the following queue name:

    UDESAMPLE.NUMCOMPUTE.OUT

  7. Click Read From Queue to display the contents of the output message.
  8. Compare the contents with the expected output message.

Output message

If the sample runs successfully, an XML output message appears on the UDESAMPLE.NUMCOMPUTE.OUT queue. To view the XML output message see NumCompute output message.

Back to Running the user-defined extension sample

Main Page iconBack to sample home