Have a look at [1]. You have to define when Camel should complete the
aggregation (e.g. after 10 messages arrived, after 10 minutes, after ...).

[1] http://camel.apache.org/aggregator2.html

Best,
Christian

On Fri, Jun 22, 2012 at 10:41 PM, Deepthi <deepthi...@gmail.com> wrote:

> Hi,
>
> I am trying to aggregate in the following manner:
>
> <camel:route>
>     <camel:from uri="direct:start"/>
>     <camel:aggregate strategyRef="aggregatorStrategy">
>     <camel:correlationExpression>
>           <camel:xpath>/order/id</camel:xpath>
>     </camel:correlationExpression>
>     </camel:aggregate>
>     <camel:bean ref="testClass" method="testMeth"/>
>     <camel:to uri="file://C:/test"/>
> </camel:route>
>
> I am using camel 2.8.0.
> The above route throws me an exception "Definition has no children on
> Aggregate".
>
> Where am I going wrong? Any help is appreciated.
>
> Thanks,
> Deepthi
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-achieve-both-xpath-and-aggregator-tp5714691p5714941.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to