I have camel Processor
which is starting Thread
this Processor
implementing spring ShutdownAware
When I send TERM
signal (graceful shutdown) to application I do not receive any information about - any method from ShutdownAware
interface were called.
I mentioned about Thread
because I want to stop it correctly.
import org.apache.camel.Processor;
import org.apache.camel.spi.ShutdownAware;
public class MyProcessor implements Processor, ShutdownAware {
...
}
Should I register this Processor|ShutdownAware somehow or what?