Running the Aggregation sample

You can run the Aggregation sample by driving the supplied test message into the fan-out flow, as follows:
  1. Open the test message enqueue file Aggregation8k.enqueue.
  2. Click Write to queue. The message will be sent to the AGGR_SAMPLE_IN queue, and the aggregated reply message appears on the AGGR_SAMPLE_OUT queue.

Verifying success

Success is determined by the arrival of the aggregated message on the AGGR_SAMPLE_OUT queue. To view the messages on the output queue, follow this procedure:

  1. On the workbench toolbar, click the Get a message from a Queue icon: Dequeue Action icon.
  2. On the drop-down menu, click Get Message to open the Dequeue Message window.
  3. Enter WBRK6_DEFAULT_QUEUE_MANAGER for the queue manager and AGGR_SAMPLE_OUT for the queue.
  4. Click Read From Queue to read a message from the queue. The order in which replies are received is not determined, but the basic structure of the XML message body is shown in the XML below. Note that the ReplyIdentifier is the CorrelId from the MQMD of the incoming reply message - the same as the MessageId from the MQMD of the request message.
<ComIbmAggregateReplyBody>
<Request2>
<ReplyIdentifier>
X&apos;414d51205742494d4220202020202020a1ada64220001901&apos;
</ReplyIdentifier>
<SaleEnvelope>
<SaleList>...</SaleList>
<SaleList>...</SaleList>
<SaleEnvelope>
</Request2>
 <Request1>...</Request1>
  <Request4>...</Request4>
  <Request3>...</Request3>
</ComIbmAggregateReplyBody>
Main Page icon   Back to sample home