Re: Shutdown sequence when running Camel in Springboot

2015-12-10 Thread raffi
Nevermind, figured it out from this article: http://www.javacodegeeks.com/2014/10/spring-boot-actuator-custom-endpoint-with-mvc-layer-on-top-of-it.html -- View this message in context: http://camel.465427.n5.nabble.com/Shutdown-sequence-when-running-Camel-in-Springboot-tp5774960p5774974.html

Re: Shutdown sequence when running Camel in Springboot

2015-12-10 Thread raffi
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 t

Re: Shutdown sequence when running Camel in Springboot

2015-12-10 Thread Henryk Konsek
Yes. CamelContext is wired as a Spring bean with registered shutdown method, so calling Spring's shutdown will close CamelContext in the first place before closing Spring context. Cheers! czw., 10.12.2015 o 20:25 użytkownik raffi napisał: > With respect to graceful shutdown, does Springboot hoo