Yeah, I see that working now, just POST to "/shutdown" and springboot shuts
everything down, including Camel.

The problem with SB's shutdown endpoint is, although it stops Camel first,
then the JVM, the initial request to `/shutdown` returns immediately, but
the time between the request and when the JVM terminates can take up to 60s,
sometimes more, and that's a problem for our deployment scripts. But if I
shutdown Camel from JMX, then shutdown SB from "/shutdown", it's much more
predictable.

I want to override Springboot's shutdown process with custom code to
shutdown Camel manually from JMX. Doing so blocks until Camel is shutdown,
and that's what I'm after, except I can't figure out how to override
Springboot's shutdown sequence.   



--
View this message in context: 
http://camel.465427.n5.nabble.com/Shutdown-sequence-when-running-Camel-in-Springboot-tp5774960p5774968.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to