Hi Willem,

Thanks for pointing that out.  I couldn't quite use CamelContextFactoryBean
easily (due to not having an application context) but it pointed me in the
right direction at least, found that what I needed was:

    protected CamelContext getCamelContext(ComponentContext
componentContext) {
        CamelContextFactory contextFactory = new CamelContextFactory();
       
contextFactory.setBundleContext(componentContext.getBundleContext());
        return contextFactory.createContext();
    }

Again leaving the creation of the underlying OsgiDefaultCamelContext to the
factory within camel-spring.

Cheers
Bryce
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/OSGi-Camel-issue-org-apache-camel-core-osgi-is-private-in-camel-spring-tp1695625p2164142.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to