Running the SearchFilter sample

Before you can run this sample, you must set up the sample, see Setting up the User-defined Extension sample.

If you encounter any problems when you run the sample, see Resolving problems when running samples in the WebSphere Message Broker documentation.

Input message

To view the XML input message, see SearchFilter input message.

Run the sample

  1. In the Broker Development view, expand UDESampleMessageFlowProject. Under Flow Tests double-click UDESampleSearchFilterMessage.mbtest to open the file in the Test Client.
  2. Click Enqueue, then click Send Message. 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. In the Test Client, click Dequeue.
  4. Click Get Message to read a message from the UDESAMPLE.SEARCHFILTER.OUT queue.
  5. 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

Back to sample home