camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepthi <deepthi...@gmail.com>
Subject Re: How to achieve both xpath and aggregator
Date Wed, 27 Jun 2012 22:39:14 GMT
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.

--
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.

Mime
View raw message