camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Outram <apa...@nickoutram.name>
Subject Caught exceptions also proceed
Date Fri, 17 Aug 2007 10:49:24 GMT

For the following setup:

exception(InvocationTargetException.class).to("seda:error");

from("direct:in").beanRef("myBean").to(direct:out);

If "myBean" raises an InvocationTargetException the message ends up on both
seda:error and direct:out.
This shouldn't be the default behaviour. To get this behaviour I would
expect to use:

exception(InvocationTargetException.class).to("seda:error").proceed();
-- 
View this message in context: http://www.nabble.com/Caught-exceptions-also-proceed-tf4285006s22882.html#a12197578
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message