Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


camel spring osgi is there a way to specify the stop method


camel spring osgi is there a way to specify the stop method  using -'spring,osgi,apache-camel'

I'm running a Camel Spring OSGI application. The Camel context is initialized through Spring.
When the bundle stops, I need to do some clean-up activities, like de-registering the message listener. How do I do that? Is there a method I can override? I understand that an OSGI bundle must provide the activator start and stop methods but my understanding also is that the Camel/Spring/OSGI framework overrides these methods.

My beanx.xml:

<beans>
  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
    <routeBuilder ref="outboundBuilder" />
  </camelContext>
</beans>


My java code:

public class MyRouteBuilder extends RouteBuilder {
    public void configure() {
           .....
    }
}

    

asked Oct 6, 2015 by rolvyrf
0 votes
23 views



Related Hot Questions



Government Jobs Opening


...