Supposedly, you want to inject some existing OSGi services into your
blueprint bean and the bundle that registers HttpService should be a
blueprint bean.

Go through the following Apache Aries tutorial

http://aries.apache.org/documentation/tutorials/blueprinthelloworldtutorial.
html

then, you may know how to inject OSGi service into the existing Blueprint
beans.

Best Rgds,

Tom


-----Original Message-----
From: ken [mailto:[email protected]] 
Sent: Tuesday, December 03, 2013 8:46 AM
To: [email protected]
Subject: apache jersey with http service

Hi All,

I've been looking around and have yet to find a good solution to inject
dependencies to a jersey service.

I have a bundle which register with the HttpService to expose a rest service
using jersey, it is working along side the org.apache.felix.http.jetty
bundle.  However, I now like to inject some dependencies to the rest
resources, what i want to inject are services that are exported by other
bundles.

are there any documentation how to achieve this with blueprint?  or should i
head over to the jersey mailing list and try asking there?

Thanks,

Ken



--
View this message in context:
http://karaf.922171.n3.nabble.com/apache-jersey-with-http-service-tp4030487.
html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to