This sample demonstrates how a JavaCompute node can call out to an external API and augment an incoming message with the results of this call.
The node extracts the newsgroup and searchexpression element values from the incoming message. The JavaMail API is then used to search the newsgroup for postings that have a subject that match the searchexpression.
Note that the sample uses the NNTP Provider for Javamail and requires the nntp.jar file that can be obtained by following the steps on the Setup instructions page.
This sample covers the following steps:
The following MQ queues are created by the sample:
The following message flow, NewsGroupGetNodeFlow, is imported by the sample: