Hi You need to enable eagerCheckCompletion="true" on <aggregate> We should probably add a validation for this so people dont mis-configure when using groupedExchanges=true.
On Mon, May 2, 2011 at 4:51 PM, ychawla <[email protected]> wrote: > Hello All, > Does the GroupExchanges attribute look at the correlation expression and > completion size? Or does it only look at the batch options. > > I have a route like this: > > <camel:route> > <from uri="direct:aggregateQuery"/> > <aggregate groupExchanges="true"> > <correlationExpression> > <simple>header.requestGUID</simple> > </correlationExpression> > <completionSize> > <header>numberOfEndpointsRequested</header> > </completionSize> > <to uri="bean:responseAggregator?method=aggregateGroupMessages"/> > </aggregate> > </camel:route> > > However, the correlation expression and completion size seem to be ignored. > I replace groupExchanges with a reference to a strategy and everything works > fine. Am I misreading what the pattern can do? In the example above the > bean method 'aggregateGroupmessages' is never called. > > Thanks, > Yogesh > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Aggregator-Pattern-GroupExchanges-tp4364886p4364886.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
