Hi, 

I'm using SpringBoot with camel 
<spring-boot.version>1.4.3.RELEASE</spring-boot.version>
<camel-spring-boot.version>2.18.3</camel-spring-boot.version>

CamelContext is auto configured via : 
CamelAutoConfiguration 

If I understand correctly the SpringCamelContext is instancied via
CamelAutoConfiguration class and not by CamelContextFactoryBean. 

Since https://issues.apache.org/jira/browse/CAMEL-2607, the
SpringCamelContext doesn't implement ApplicationListener interface anymore. 

It seems like onApplicationEvent is not called on the SpringCamelContext
which in my situation cause the AMQ ConnectionFactory to be destroyed before
the camel graceful shutdown.

Anyone has this issue or can confirm ?
Has a fix, I created a component which is listening ApplicationEvent and
forwarding them to injected SpringCamelContext.

Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/OnApplicationEvent-not-called-with-CamelAutoConfiguration-tp5798802.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to