On Thu, Jun 28, 2012 at 12:39 AM, Deepthi <deepthi...@gmail.com> wrote: > Hi Claus, > > I have changed it as suggested by you: > <camel:route> > <camel:from uri="direct:start"/> > <camel:aggregate strategyRef="aggregatorStrategy" completionSize="2" > completionTimeout="5000"> > <camel:correlationExpression> > <camel:xpath>/orders/order/@id</camel:xpath> > </camel:correlationExpression> > <camel:bean ref="testClass" method="testMeth"/> > <camel:to uri="file://C:/test"/> > </camel:aggregate> > </camel:route> > > It says invalid correlation key for all the input files. I can set > ignoreInvalidCorrelationKeys to true but it just skips all the files. Where > am I going wrong as I see the same example in camel in action as well. >
Can you try with <camel:xpath resultType="java.lang.String">/orders/order/@id</camel:xpath> To force the xpath to be a string type > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-achieve-both-xpath-and-aggregator-tp5714691p5715196.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