Running the SearchFilter 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 SearchFilter input message.

Run the sample

  1. In the Broker Application Development perspective of the Message Brokers Toolkit, open the test message enqueue file called UDESampleSearchFilterMessage.
  2. Click Write to queue. The input message is sent to the UDESAMPLE.SEARCHFILTER.IN queue. The message flow transforms the message by using the SearchFilterNode and routes it to the UDESAMPLE.SEARCHFILTER.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.SEARCHFILTER.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.SEARCHFILTER.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, there are two possible output messages.

Back to Running the user-defined extension sample

Main Page icon   Back to sample home