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. >
You need to put these inside the aggregate tag. <camel:bean ref="testClass" method="testMeth"/> <camel:to uri="file://C:/test"/> That means when the message is being sent out of the aggregator its routed to the bean and file. > 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. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen