camel-users mailing list archives

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

Willem:

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,

David


Hi,

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.

Willem


-- 
View this message in context: http://old.nabble.com/problem-with-simple-message-to-file-example-under-osgi-tp27013928p27026937.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message