camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Lalonde <>
Subject Aggregator - how to fail & resubmit if timeout expired
Date Thu, 20 Oct 2011 12:30:16 GMT


I was wondering what was the best way to resubmit exchanges that did not get aggregated within
a given timeout.


It seems like the completionTimeout is to decide when the exchanges should be considered aggregated. 
I saw an option for discarding exchanges aggregated only because of completionTimeout but
this is not what I want.  I want them to be considered failed Exchanges so that they can
be resubmitted (via onException()).

Our fallback approach would be to throw an exception if Exchange.CamelAggregatedCompletedBy
== timeout.  I was just wondering if there was a more elegant idiom.


P.S. I checked out

View raw message