camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Ordering of routes and ShutdownRoute.Defer option
Date Sat, 08 Sep 2012 10:26:02 GMT
On Sat, Sep 8, 2012 at 11:48 AM, gilboy <> wrote:
> Hi
> I am trying to ensure I understand the significance of the ordering of
> routes
> Assume I have route #1 which publishes messages on to a SEDA Queue, e.g.
> *from(endpoint).to(sedaQueue)*
> and I have  route #2 which consumes messages from the same seda queue, e.g.
> *from(sedaQueue).to(endpoint)*.
> I should set the startup order on route #2 to be 1 and the startup order of
> route number 1 to be 2. Right?
> Secondly, I should use the ShutdownRoute.Defer option on route #2. Right?

You could do that. But the graceful shutdown of Camel has been
significant improved since, and it would handle this for you out of
the box.

The ordering can still come handy when you want to control the
start|stop ordering more strictly.
Or if you use custom components, which may require to be shutdown earlier.

Camel offers custom components to let its consumers affect the
graceful shutdown if they implement

> Thanks in advance
> Joe
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message