camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Drop aggregate
Date Sat, 26 Nov 2016 08:37:48 GMT
That is a bit more tricky, but you could maybe handle the exception
and build a custom failure message that routes into the aggregator,
that then with the aggregation strategy builds a failed group and
trigger its completion, that then is discarded afterwards.

There is also aggregate controller you can use

However we may want to add an option to force discard a group. I logged a ticket

On Fri, Nov 25, 2016 at 11:49 AM, morten <> wrote:
> I have a scenario where i am parsing a large csv file that contains a lot of
> orderrows. I process each orderrow individually in different steps and then
> use an aggregator to collect all orderows for a given order. The problem is
> that during the processing an exception can occur which will move the
> message to a deadletter queue. If this happen i have to discard the rows
> that have already been aggregated. Question:
> how do i signal to the aggregator that the aggregate must be dropped when
> the failed message never passes to the aggregator?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

View raw message