Prev | Current Page 435 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"


DefaultServiceMixClient">



The split aggregator is configured with the elements aggregateElementName and
messageElementName. These two elements will decide the message envelopes to be
used when the split aggregator aggregates the message.
Deploy and Run the Sample
To build the sample, change directory to ch15\07_SplitAggregator and type ant
as shown here:
cd ch15\07_SplitAggregator
ant
Chapter 15
[ 333 ]
This will compile all the files. Now to test the sample, just execute the run target of
build.xml as shown as follows:
cd ch15\07_SplitAggregator
ant run
Observe the ESB console; you can see the messages being sent out to the aggregator
and finally the aggregator combines all related messages and forwards them to the
trace component which will print out the message to the console. This is shown
as follows:
Send msg : corrId<1178104210727> : splitterCount<3> : splitterIndex<1>
: msg<>
Waiting 5000 millis before next message...
Send msg : corrId<1178104215726> : splitterCount<2> : splitterIndex<1>
: msg<>
Waiting 5000 millis before next message.


Pages:
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447