camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kcostilow <>
Subject Multicast Aggregation Exception Handling
Date Mon, 22 Aug 2011 18:51:16 GMT
I'm trying to catch exceptions in each of my multicast processors, log it,
and continue on.

I've learned from this forum that onException() is not the way to go,
because it applies to the entire route and not just to the multicast
portion, fine.

So from the camel docs I discovered I could implement my own
AggregationStrategy and pick up any Exceptions there.

This worked when one exception occurred, but, not when 2 processors in a
single multicast both throw an exception.

See attached unit test. 

Note also that I've tried wrapping each multicasted processor in its own
doTry()...doCatch() container, but, when I do that, I cannot get access to
the exception, getProperty(Exchange.EXCEPTION_CAUGHT) shows empty (I can add
a unit test for this and re-post if proof is needed).

1. Am I doing this right?
2. If this is a bug, are there any ideas for a workaround?

Camel 2.8.0

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message