Prev | Current Page 463 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

binildas.esb.servicemix.serviceassembly.
voipservice.CreditGateway">

Credit
Sample Service Aggregation
[ 360 ]




http://www.binildas.com/voipservice


http://www.binildas.com/voipservice






When the Credit Gateway service returns, the onMessageExchange method in the
broker will be invoked (Sequence 1). Now as the broker component is again in
the consumer role and the LocalPart is "creditGateWay", the control flows to the
processCreditGatewayResponse which is given in Sequence 6. This is shown in
the following figure:
Chapter 16
[ 361 ]
Our next aim is to route the message to all the targets defined in the recipient list. We
create as many new InOut exchanges as there are entries in the recipient list and send
them to the delivery channel. The following code snippet details out these sequence
of events:
public class SyncVoipBroker extends ComponentSupport
implements MessageExchangeListener
{
private void processCreditGatewayResponse(MessageExchange
exchange) throws MessagingException
{
String correlationId = (String) getProperty(exchange,
Constants.


Pages:
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475