-
1. Re: Custom/User Camel Compenent & auto-discovery feature & OSGi.
ffang Oct 31, 2010 2:56 AM (in response to pchandler)Hi,
One quick question, did you already export my.package for your customer camel component bundle?
Actually we have a smx-camel nmr component which works in OSGi container here[1], you may need take a look at to see how it works
https://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/camel/servicemix-camel/
Freeman
Edited by: ffang on Oct 31, 2010 6:52 AM
-
2. Re: Custom/User Camel Compenent & auto-discovery feature & OSGi.
njiang Nov 2, 2010 5:50 AM (in response to pchandler)You don't need to export the "META-INF/services" directory of your bundle, but you need to make sure the bundle is installed rightly before your camel application is started.
Camel supports to find the camel component from the registry. If you are using Spring DM, you can simple add a below configure into your application context.
<bean id="foo" class="my.package.FooComponent"/>
-
3. Re: Custom/User Camel Compenent & auto-discovery feature & OSGi.
pchandler Nov 2, 2010 5:21 PM (in response to njiang)<bean id="foo" class="my.package.FooComponent"/>
Works.
The issue maybe the FooComponent is not OSGi exported/registered it's in the "Bundle-ClassPath"?
Peter.