Example: Receiving Multiple Messages with a Single RA JMS Agent Receiver Job

In this example, the variables &locations{n}# and &i_{n}# are used in the output name for a property parsing to allow you to receive multiple messages with a single RA JMS Agent Receiver Job. The message numbers are substituted for {n}.

Properties parsing

The {n} in the &locations{n}#and &i_{n}# variables use code on the Job's Post Process page to receive multiple messages based on a Script object. Note that &MESSAGES_RECEIVED# is the essential variable to iterate.

Post process code

Process code