Hi, I am trying to learn about aggregator and got an exception with the following route, can anyone tell me what's wrong? also is it mandatory to have the to uri in the end. if i'm doing inout pattern shouldn't the aggregated response go back to the sender automatically?
<route> <from uri="jms:QUEUENAME"/> <aggregate strategyRef="aggregatorStrategy" completionSize="3"> <correlationExpression> <header>JMSCorrelationID</header> </correlationExpression> <to uri="mock:result" /> </aggregate> </route> Caused by: java.lang.IllegalArgumentException: AggregationStrategy or AggregationStrategyRef must be set on Aggregate[JMSCorrelationID -> [To[mock:result]]] at org.apache.camel.model.AggregateDefinition.createAggregationStrategy(AggregateDefinition.java:279) at org.apache.camel.model.AggregateDefinition.createAggregator(AggregateDefinition.java:158) at org.apache.camel.model.AggregateDefinition.createProcessor(AggregateDefinition.java:149) at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:441) at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:179) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:870) -- View this message in context: http://camel.465427.n5.nabble.com/help-with-aggregator-exception-tp5720128.html Sent from the Camel - Users mailing list archive at Nabble.com.