Hello All!

I'm using Camel 2.2 and I'm trying to split incoming message, then process
them parallelly (with my own thread pool), then aggregate them with my
custom AggregationStrategy. Everything works fine except of error handling -
I don't need any of those splitted messages if any of them throws an
exception, and I don't wan't to process others in case of such exception. To
do so I'm using stopOnException(). But from what I see, when I use it, and
there is an exception on my route none of the failed messages goes to the
AggregationStrategy. 

So my quiestion is: is there any way to make stopOnException() and custom
AggregationStrategy work together, and if not then how can I stop other
threads from processing their requests in case of exception without using
stopOnException (for example how to handle it in my AggregationStrategy?)?

Thank you for all your help!

Mikolaj Kromka



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-2-2-Exception-handling-problem-in-case-of-parallel-splitter-with-custom-AggregationStrategy-tp5729205.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to