You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/12/19 18:31:52 UTC

[jira] Commented: (CAMEL-1483) Graceful shutdown

    [ https://issues.apache.org/activemq/browse/CAMEL-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56542#action_56542 ] 

Claus Ibsen commented on CAMEL-1483:
------------------------------------

I got some basic graceful shutdown up and running. Looks good so far.

I am opting for to make graceful shutdown the default in Camel and have it failsafe with a timeout that can tackle if there should be a weird situation where there are inflight exchanges which seems to never complete.

It will of course be pluggable and configurable.

It works with pending messages on seda queues and it waits for inflight exchanges to be completed.
And it stops those routes which can safely be stopped so Camel wont intake new exchanges while other routes are still routing those remaining exchanges.

There will be an interface to use by other components to indicate that they are like the seda and have pending in memory messages that Camel should wait for as well.

> Graceful shutdown
> -----------------
>
>                 Key: CAMEL-1483
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1483
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.2.0
>
>
> Introduce a GracefulShutdownAware interface (in lack of better name) that components can support.
> It allows the component to eg deny any new incoming messages.
> Can be used by JMS, File, Http, Mina etc. to better support graceful shutdown as they will deny new messages.
> James have a good idea on this one. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.