Running the Aggregation sample
You can run the Aggregation sample by driving the supplied test message
into
the fan-out flow, as follows:
- Open the test message enqueue file Aggregation8k.enqueue.
- 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:
- On the workbench toolbar, click the Get a message
from a Queue icon:
.
- On the drop-down menu, click Get Message to open the Dequeue
Message window.
- Enter WBRK6_DEFAULT_QUEUE_MANAGER for the queue manager
and AGGR_SAMPLE_OUT for the queue.
- 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'414d51205742494d4220202020202020a1ada64220001901'
</ReplyIdentifier>
<SaleEnvelope>
<SaleList>...</SaleList>
<SaleList>...</SaleList>
<SaleEnvelope>
</Request2>
<Request1>...</Request1>
<Request4>...</Request4>
<Request3>...</Request3>
</ComIbmAggregateReplyBody>
Back to sample home