We are using Blueprint + Camel + Karaf ,migrating from Spring . I am new to OSgi Blueprint . We are using Blueprint XML to define services from beans defined in blueprint xml.
After we added Service in Blueprint XML, atleast are getting from karaf as below: fyi: bundle is in Active state
karaf>service:list | grep custom
[org.apache.camel.Processor, com.rnd.model.impl.PaymentServiceProcessorBase,com.rnd.generic.CustomServiceP rocessor]osgi.service.blueprint.compname = customPaymentProcessor
I am sure bean is registering into OSGI Services. but somehow its not visible to other XML in other Bundle.
**Blueprint XML**::
<bean id="customPaymentProcessor" class="blah blah"/>
<service ref="customPaymentProcessor" auto-export="all-classes"/>
Please help me how to get accesss this bean in Routes XML file in APPConfig(under karaf root Dir) Folder.
myRoutes.xml
<!-- Add this route to CamelContext Using LoadRouteDefinitions -->
<routes id="xyz-Context" xmlns="http://camel.apache.org/schema/spring">
<route id="xyz-one">
<from uri="direct:xyz"/>
<!-- this customPayProcesssor is exposed as above -->
<process ref="customPayProcesssor"/>
</route>
</routes>
I understand from this ref: https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Deploying_into_the_Container/files/DeploySimple-Publish.html
All Osgi services are implicitly register as oSGI regsitry for camel to search. But I am getting ;::
[Bean[ref:cust... because of No bean could be found in the registry for: customPaymentProcessor