You can call suspend/resume on CamelContext that will suspend/resume
all the routes.

On Mon, Aug 1, 2016 at 11:42 AM, fxthomas <felix.tho...@gmail.com> wrote:
> hello,
>
> I wish to know which would be the best approach to Suspend and resume all
> routes in the context . I saw the route policy approach but it is linked to
> each route. I want a Global Context policy in which I can suspend route and
> resume also .
>
> For example if there is a DB failure all routes should suspend and my custom
> code will listen for the connections being active and resume the routes
> again.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Suspend-All-routes-Resume-incase-of-Business-Exception-tp5785773.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to