Re: Proper way to override DefaultShutdownStrategy

2014-05-01 Thread Claus Ibsen
Hi What do you want to do? If you want to do execute some custom code when CamelContext is being shutdown, then use event notifier, or the lifecycle strategy. Some links http://camel.apache.org/eventnotifier-to-log-details-about-all-sent-exchanges.html http://camel.apache.org/maven/current/camel

Proper way to override DefaultShutdownStrategy

2014-05-01 Thread John D. Ament
Hi all, I was looking for a way to have a shutdown callback. I overrode the doShutdown method of DefaultShutdownStrategy, thinking it would be called for shutdown of the camel context. Turns out that it's being called as a part of the shutdown for each route as well. Is there a more appropriate