camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <>
Subject Re: not getting combined response from aggregator
Date Wed, 24 Apr 2013 06:32:30 GMT
Your understanding is wrong.
Camel will split the messages (m1) into it's interdependent records (r1,
r2, ..., r1000) based on the splitter pattern. Each splitted message can be
processed in parallel by using the parallelProcessing option. For each
message, the endpoints/processors in the split route is called one after
the other.
The aggregator is responsible for aggregating the results of the processed
messages (m1, m2, ..., m1000) at the end of the split route. Make sense?

You can merge the result from your service1 and service2 method call in


On Tue, Apr 23, 2013 at 3:14 PM, bhushand <>wrote:

> Hello All
>       I am trying to use splitter. I am using splitter first time.
> Following
> is my route
> <route>
> <from uri="direct:start"></from>
>      <split strategyRef="MyAggregationStrategy" parallelProcessing="true">
>          <method bean="myBean" method="splitMessage"/>
>          <to uri="bean:myService?method=service1/>
>          <to uri="bean:myService?method=service2/>
>     </split>
> </route>
> Now as per Camel doc, splitMessage() will help me to split incoming message
> and will return a collection of splitted messages. As parallel processing
> is
> enabled, service1() and service2() will be executed simultaneously.
> MyAggregationStrategy will help me to aggregate the result from service1()
> and service2().
> In MyAggregationStrategy, I am trying to combine the result from service1()
> and service2().
> But when I am done with splitter and returning back, it is not giving me
> combined result.
> Please help me how to get combined result of MyAggregationStrategy in
> caller
> method.
> Thanks
> Bhushan
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message