-
Bug
-
Resolution: Not a Bug
-
Major
-
fuse-6.3-R17-GA
-
None
-
False
-
False
-
%
-
-
Undefined
-
-
Camel ignores `handle=false` in nested `dotry/docatch` but only with Java DSL, with XML DSL works as expected.
This works
<route> <from uri="direct:testRouteXML"></from> <doTry> <doTry> <to uri="class:redhat.CXFExceptionProcessor" /> <doCatch> <exception>java.lang.Exception</exception> <handled> <constant>false</constant> </handled> <log message="docatch XML 1" loggingLevel="INFO" logName="redhat"/> <doTry> <to uri="class:redhat.CXFExceptionProcessor" /> <doCatch> <exception>java.lang.Exception</exception> <handled> <constant>false</constant> </handled> <log message="docatch XML 2" loggingLevel="INFO" logName="redhat"/> </doCatch> </doTry> </doCatch> </doTry> <doCatch> <exception>java.lang.Exception</exception> <handled> <constant>true</constant> </handled> <log message="docatch XML 3" loggingLevel="INFO" logName="redhat"/> </doCatch> </doTry> </route>
This not
from("direct:testRouteJAVA") .doTry() .doTry() .bean(CXFExceptionProcessor.class) .doCatch(Exception.class) .handled(false) .log(LoggingLevel.INFO,MyRouteBuilder.class.getName(), "docatch 1 JAVA") .doTry() .bean(CXFExceptionProcessor.class) .doCatch(Exception.class) .handled(false) .log(LoggingLevel.INFO,MyRouteBuilder.class.getName(), "docatch 2 JAVA") .endDoTry() .endDoTry() .doCatch(Exception.class) .handled(true) .log(LoggingLevel.INFO,MyRouteBuilder.class.getName(), "docatch 3 JAVA") .endDoTry();