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/01/13 15:39:59 UTC

[jira] Commented: (CAMEL-1244) Add shutdown hook to Main.main()

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

Claus Ibsen commented on CAMEL-1244:
------------------------------------

Willem I think we could add a Main option so you can enable/disable the shutdown hook, with a sensible default. Maybe enabled.

And we might consider it overkill to add a Stopable interface, as its a JVM Shutdown.

I was wondering if Spring dont have something for this for people running Spring from a Main?

> Add shutdown hook to Main.main() 
> ---------------------------------
>
>                 Key: CAMEL-1244
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1244
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Hari Gangadharan
>            Assignee: Willem Jiang
>            Priority: Trivial
>             Fix For: Future
>
>         Attachments: HangupInterceptor.java, patchfile, Stopable.java
>
>
> Add a shutdown hook to so that it shuts down gracefully on HUP signal.
> http://www.nabble.com/Two-questions%3A-Stopping-Camel-and-intercept-before-retry-td21323127s22882.html

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