This content has been marked as final.
Show 3 replies
-
1. Re: Aggregate and split with reply to original sender
davsclaus Jul 21, 2010 8:41 AM (in response to schristo)Who is the original sender?
-
2. Re: Aggregate and split with reply to original sender
schristo Jul 27, 2010 6:54 AM (in response to davsclaus)So for example:
from("activemq:default:replicationQueue")
.process(prepareRecord)
.to(ExchangePattern.InOut, "vm:remoteWebService")
.to("log:WebServiceResult");
from("vm:remoteWebService")
.aggregate(header(CxfConstants.OPERATION_NAME)).groupExchanges()
.process(groupExchangeToBatchReq)
.to("cxf:bean:remoteWebService")
.split();
The intent is to decouple the web service route, so that multiple routes can make use of it while hiding the aggregation from the original requests.
Would this perhaps be better achieved by implementing a custom endpoint?
-
3. Re: Aggregate and split with reply to original sender
davsclaus Jul 27, 2010 8:57 AM (in response to schristo)No the aggregate is like a final destination. The sender will return after the message has been delivered to the aggregator.