After you have imported and partially set up this sample, then performed the appropriate setup instructions, you can run the sample by following the instructions in the Running the sample section below.
This topic also includes an example input test message and a corresponding output message, so that you can confirm that the sample has worked.
The test message used in running this sample is based on the following format:
<newsgroupgetnode>
<newsgroup>ibm.software.websphere.mqintegrator</newsgroup>
<searchexpression>.*Java.*</searchexpression>
</newsgroupgetnode>
where the field <newsgroup> contains a newsgroup to search, and the field <searchexpression> contains a regular expression search term.
This sample uses the message flow NewsGroupGetNodeFlow. It contains one input queue called JAVACOMPUTE.NEWS.IN and the message flow can transform and route the message to one of two output queues (JAVACOMPUTE.NEWS.OUT and JAVACOMPUTE.NEWS.FAILURE).
To run the sample:
If all the steps above have worked then the sample is complete. Take a look at the Java code in the message flow NewsGroupGetNodeFlow to see how the message transformation was achieved.
The output message from the sample should have the following format:
<newsgroupgetnode>
<newsgroup>ibm.software.websphere.mqintegrator</newsgroup>
<searchexpression>.*Java.*</searchexpression>
<result>
<message>
<subject>...</subject>
<from>...</from>
<sentdate>...</senddate>
<body>...</body>
</message>
<message>
<subject>...</subject>
<from>...</from>
<sentdate>...</senddate>
<body>...</body>
</message>
...
</result>
</newsgroupgetnode>