W dniu 12.01.2011 14:18, davsclaus pisze:
You have to create an OsgiCamelContext instead of the DefaultCamelContext.
Thanx, that was fast :)  After fast googling I found this piece of code:

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

it solves all my problems. Once again many thanx :)

greetings,
Marek

Reply via email to