Hi Anurag,

Regardless of camel any OSGi service is just an object and its treated no
different than other objects.
Using spring or blueprint you can obtain a reference to an OSGi service and
it can be treat as bean.
In Camel things are no different you treat services like beans.

Here is an example: http://camel.apache.org/tutorial-osgi-camel-part1.html

Note: If you don't heavily rely on spring, it is strongly recommended that
you use blueprint (the example uses spring but blueprint could be used
instead).

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache Camel <http://camel.apache.org/> Committer
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
Apache DirectMemory <http://incubator.apache.org/directmemory/> Committer
*

Reply via email to