1 2 Previous Next 15 Replies Latest reply on Jul 28, 2009 8:50 AM by njiang Go to original post
      • 15. Re: OSGi Pure Service and Camel Route.
        njiang

        Hi,

         

        Since you use create the CamelContextFactoryBean yourself , you can't get the bundle context from the beanFactory.

         

        The simplest way to get the BundleContext is to implement BundleContextAware interface like the CamelContextFactoryBean does.

        Then Spring will inject the BundleContext for the bean instance of myService

         

        Willem

        1 2 Previous Next