Running the Aggregation sample

You can run the Aggregation sample by driving the supplied test message into the FanOut flow, as shown in the following steps:

  1. In the Application Development view expand the Aggregation Message Flows project, under Flow Tests double-click Aggregation8k.mbtest to open the file in the Test Client.
  2. In the Test Client, click Enqueue.
  3. Click Send Message. The message is sent to the AGGR_SAMPLE_IN queue, and the aggregated reply message appears on the AGGR_SAMPLE_OUT queue.

If you encounter any problems when you run the sample, see Resolving problems when running samples in the IBM Integration Bus documentation.

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, use the following procedure:

  1. In the Test Client, click Dequeue.
  2. Click Get Message 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 following XML code. The ReplyIdentifier is the CorrelId from the MQMD of the incoming reply message, it is 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>

Back to sample home