I think the most convenient is define a ShutdownStrategy and configure it into you camel context with the Spring DSL.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Thursday, October 18, 2012 at 5:03 AM, Henrique Viecili wrote: > Isn't it possible with Spring DSL? > > I thought the solution would be a no-brainer here in the list... > > Regards, > *Henrique Viecili* > > On Mon, Oct 15, 2012 at 6:27 PM, Henrique Viecili <henri...@myreks.com > (mailto:henri...@myreks.com)>wrote: > > > Hello guys... > > > > I've created a service that register itself on startup using camel-timer > > component and now I want to make it unregister itself on shutdown. I know I > > could do it registering a Shutdown Hook in the JVM or coding my own > > ShutdownStrategy but I am looking for a simple solution preferably using > > Spring DSL. Does anyone have done this before? > > > > Thanks, > > *Henrique Viecili* >