I ran into this today.  I have a route with doTry/doCatch, where in the
doCatch there is a choice()when()otherwise() block.  The code never reaches
"point 2" for me, even when MyHttpException is not thrown.

.from()
     ...
     .doTry()
          ...
          .log(level.INFO, log, "Reaches point 1.")
     .endDoTry()
     .doCatch(MyHttpException.class)
          ...
          .choice()
               .when()
                    ...
               .otherwise()
                    ...
          .end()
          .stop()
     .end()
     .log(level.INFO, log, "Reaches point 2.")
.end();

In the documentation doTry/doCatch/doFinally is always at the end of the
route, so I can't tell how to end that block and have code after it (i.e.:
point 2).



--
View this message in context: 
http://camel.465427.n5.nabble.com/Nested-doTry-doCatch-blocks-tp5748561p5803329.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to