camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriyC300 <dmitriyC...@gmail.com>
Subject Dynamically continue route on exception
Date Tue, 24 May 2016 13:38:46 GMT
Hi Guys,
I have a use case where I'd like to have route proceed on exception.  I know
we can use continued at the time we configure the route.  But what is the
best way to instruct the route to proceed on exception dynamically at
runtime? Is try/catch the only option at this time?

static:
onException(Exception.class).process(...).continued(true)

Nice to have:
onException(Exception.class).process(...).continued(simple("${property.continueOnException}"))

Full use case:
from("route1").process("route3?continueOnException=true").process(process1).end();
from("route2").process("route3?continueOnException=false").process(process2).end();
from("route3").onException(Exception.class).continue(simple("${property.continueOnException}")).end().process(process3).end();

Dmitriy



--
View this message in context: http://camel.465427.n5.nabble.com/Dynamically-continue-route-on-exception-tp5783038.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message