camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlawson <>
Subject Re: problem with simple message to file example under osgi
Date Wed, 06 Jan 2010 18:52:04 GMT


I modified my code to create the camel context using the CamelContextFactory
and now the type converters are read in as expected. Are there any helpful
hints or other things to watch out for when using Camel in an OSGi
container? Thanks for your help,



How did you create the camel context?

Using the spring config, or creating the DefaultCamelContext yourself.

If you create the DefaultCamelContext by yourself, you need to create a 
OSGi version of CamelContext by using the 
org.apache.camel.osgi.CamelContextFactory to create the CamelContext.

Before calling the createContext() method, you need to make sure you set 
the right bundleContext into the instance of the CamelContextFactory.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message