Hello everybody, I'm having some problems deploying a bundle which creates some Apache Camel Routes with information from a database table. The solution I'm developing has 3 bundles: Bundle A: implements database access. This bundle publishes OSGI services using Apache Aries Blueprint. Bundle B: implements access to some JSON webservices. It uses the services published by bundle A and also publishes it's own services both using blueprint. Bundle C: implements my business logic. This logic is organized by Apache Camel Routes triggered by Camel Quartz. It consumes the services published by both A and B bundles. This bundle will create as much routes has records defined in a database table instantiating the corresponding class for the operation. In blundles B and C I'm using bean reference properties to obtain the instances of the services I'm using:
When I install bundle C with only the bean and reference definition I can see my setter method being invoked in the Apache Servicemix log with instanciated service objects: The problem I'm facing is when I include the Camel Context with the route creation package I'm unable to access these services. In one hand in the log I'm no longer seeing my setter methods being invoked and when I try to get the services by hand in my RouteBuilder class I'm getting an exception. My final blueprint.xml is the following: My RouteBuilder class in the >com.trikorasolutions.eammobilesync.osgiroutes packages has the following Java code in the configure() method: This service will return all the records on a database table which I then use to build my routes. When publishing the bundle with the route builder I'm getting the following exception on the reg.lookup(...) method invokation: The full exception is on pastebin: http://pastebin.com/t2pK6iJM Can you please help me identifying what am I doing wrong? I think my problem is that my Camel context is not accessing the Blueprint Registry but I haven't been able to find anywhere the way to do this kind of operations. My environment: Apache Servicemix v4.5.1 JDK 1.6 I'm deploying my bundles using Gradle. Thank you in advance. ----- Best regards, Cumprimentos, Un saludo, António Jacob Costa http://www.trikorasolutions.com/ http://linkd.in/ajcin -- View this message in context: http://servicemix.396122.n5.nabble.com/camel-blueprint-Cannot-lookup-registry-tp5717771.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
