Hi You have hit a corner issue with onException and handled(true) without any additional processing of the message. But yeah the DLC should not get the message.
I will log a JIRA. On Tue, Mar 6, 2012 at 5:11 PM, razvan.ludvig <razvan.lud...@almazsa.com> wrote: > The attached unit test ( > http://camel.465427.n5.nabble.com/file/n5541356/ExceptionHandlingTest.java > ExceptionHandlingTest.java ) fails, but removing the log in the onException > block will make the test pass. The same behaviour can be seen for almost any > statement inside the block (like setBody, setHeader, etc) > > I used Camel 2.9.0 for these tests. > > Here is the route: > > > > And this is the test snippet: > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Inconsistent-onException-behaviour-tp5541356p5541356.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/