How can I get a notification when a CamelContext is stopped, the API has addStartupListener but nothing similar for when the context is stopped?
this is one of the ways
camelContext.addLifecycleStrategy(new LifecycleStrategySupport() {
@Override
public void onContextStop(CamelContext context) {
}
});
see more in Claus Ibsen's answer, he is the author of Camel in Action http://www.manning.com/ibsen/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With