You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sap <pa...@gmail.com> on 2017/06/13 17:44:29 UTC

onException() Redelivery to parent route

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.

Re: onException() Redelivery to parent route

Posted by barthorre <ba...@anova.be>.
Hi,

have a look at this article:

http://camel.apache.org/how-do-i-retry-processing-a-message-from-a-certain-point-back-or-an-entire-route.html



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

Re: onException() Redelivery to parent route

Posted by Bart Horré <ba...@anova.be>.
Hi,

have a look at this article:

http://camel.apache.org/how-do-i-retry-processing-a-message-from-a-certain-point-back-or-an-entire-route.html

Bart Horré
Anova r&d bvba

On Tue, Jun 13, 2017 at 7:44 PM, sap <pa...@gmail.com> wrote:

> 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.
>