camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Graceful shutdown with drain stopping
Date Wed, 09 May 2012 06:50:25 GMT
On Wed, May 9, 2012 at 8:13 AM, Thomas Johansen <> wrote:
> Hi,
> I've been looking at the shutdown strategy support, but can't find a way to
> drain stop my routes.
> I.e. I have an application with several Mina TCP and Jetty consumer routes.
> When shutting down the first thing I want to happen is that these routes
> stop consuming any more messages which in practice means that their
> listening sockets are unbound. THEN I want the current inflight exchanges
> to complete before shutdown.

This should happen currently. The consumer is being shutdown first.
Then the in flight messages is being processed, and when no more messages
then the shutdown is complete.

Do you see something else?
You can enable DEBUG logging at the
and see what it logs.

> Is this easily achievable without too much custom code? I guess this
> problem goes for all routes which are not polling consumers...
> Takk,
> Thomas

Claus Ibsen
CamelOne 2012 Conference, May 15-16, 2012:
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message