Hi If you are using spring then you can let it handle the lifecycle http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html
On Thu, Jan 24, 2013 at 12:06 PM, siraj <sira...@gmail.com> wrote: > Hi, > > I have deployed camel in tomcat server. > I want to shutdown camel context when the tomcat server down. > when tomcat server shutdown, it will call servletcontextlistener > contextDestroyed() method. > How can i shutdown camel inside servletcontextlistener. > > > thanks. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-shutdown-tp5726146.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: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen