camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sap <patelsac...@gmail.com>
Subject onException() Redelivery to parent route
Date Tue, 13 Jun 2017 17:44:29 GMT
Hi.

I have a route similar to below.

from("sql:select id from tab where value =
1234?outputHeader=id&outputType=SelectOne")
.to("direct:domore")


from("direct:domore")
.to(some ftl which will use the id)
.to(some queue)

When an exception occurs in route "direct:domore", most likely cause is a
race condition and id is not "yet" present and is null. At this point, i
want to restart the parent route. i.e. from("sql:...) which a re delivery
delay.

how can i specify on exception clause? 

Thanks,



--
View this message in context: http://camel.465427.n5.nabble.com/onException-Redelivery-to-parent-route-tp5803518.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message