LOG.info("Creating the CamelContext ...");
setThreadContextClassLoader();
CamelContextFactory factory = new CamelContextFactory();
factory.setBundleContext(bundleContext);
LOG.info("Get the bundleContext is " + bundleContext);
return factory.createContext();
}
protected void setThreadContextClassLoader() {
// set the thread context classloader current bundle classloader
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());