I have an application which dynamically creates and removes routes in
a camel context. I'd like to be able to invoke an onShutdown method
when routes are removed so that I can perform some cleanup tasks. I've
read http://camel.apache.org/graceful-shutdown.html but wasn't able to
find a good solution there. Ideally I'd define a Runnable and
configure it like this:

from("foo:bar").to("abc:123").onShutdown(myRunnable);

Is there some alternative that I missed or is this more of a feature request?

Thanks,
Jeff

Reply via email to