You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by yxzhao <yx...@stonewain.com> on 2013/01/01 22:46:16 UTC

Camel Shutdown but Application does not die

Hi All,

We have an application using camel. Now we're trying to shut it down through
JConsole (invoke the stop operation in camel context), but the application
does not die though the camel logged below info in the log.

[INFO] org.apache.camel.spring.SpringCamelContext - Apache Camel 2.10.0
(CamelContext: myCamel) is shutdown in 0.007 seconds. Uptime 3 minutes.

Does anyone out there have a solution for us or did we misunderstand
something? 

Thanks a lot for any info and have a great holiday season!  



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Shutdown-but-Application-does-not-die-tp5724755.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Shutdown but Application does not die

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

The stop method will only stop CamelContext.
Though it depends on how you start the JVM, eg if you use some of the
Main classes from Camel then it will detect that Camel is stopped and
then shutdown the JVM also.

See these FAQs
http://camel.apache.org/running-camel-standalone.html
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html

So it depends how you run the JVM, how you can shutdown the JVM from JMX.


On Tue, Jan 1, 2013 at 10:46 PM, yxzhao <yx...@stonewain.com> wrote:
> Hi All,
>
> We have an application using camel. Now we're trying to shut it down through
> JConsole (invoke the stop operation in camel context), but the application
> does not die though the camel logged below info in the log.
>
> [INFO] org.apache.camel.spring.SpringCamelContext - Apache Camel 2.10.0
> (CamelContext: myCamel) is shutdown in 0.007 seconds. Uptime 3 minutes.
>
> Does anyone out there have a solution for us or did we misunderstand
> something?
>
> Thanks a lot for any info and have a great holiday season!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Shutdown-but-Application-does-not-die-tp5724755.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen