camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DariusX <dariuscoo...@gmail.com>
Subject Re: Loop should continue after exception caught.
Date Wed, 28 Sep 2016 13:46:00 GMT
Do you find it is always breaking out of the loop or never breaking out? 
When I try the following code, the loop continues after being caught, unless
I set the "CamelRouteStop" property, as shown below.

        from("direct:loopTest")
        .loop(simple("${body.size}"))
        .doTry()
           .process(new Processor1())
           .to("log:LogPoint1")
        .doCatch(Exception.class)
          .setProperty("CamelRouteStop", constant(Boolean.TRUE))
          .to("log:exception")
        .endDoTry();




--
View this message in context: http://camel.465427.n5.nabble.com/Loop-should-continue-after-exception-caught-tp5787979p5788159.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message