The tutorial uses blueprint to publish the service and uses the CXF namespace for blueprint. This is currently the most flexible approach as it supports all features of CXF. It is limited to blueprint though.
If you want to use DS to annotate your service and do injections then like Scott described Remote Service Admin is the better choice as DS is not directly supported by CXF. If you want to expose SOAP and REST services then CXF DOSGi provides a quite complete support for the CXF features. The upcoming version 2.0 of CXF DOSGi will be slimmer in footprint and support even more CXF features so it will be almost en par with CXF blueprint. It allows to define almost all CXF settings using intents (Databinding, binding, SSL, security, Rest providers, Logging, CXF features, http conduits). ECF also supports CXF now but I am not sure at what level of CXF features. Christian 2016-08-15 17:21 GMT+02:00 Marc Durand <[email protected]>: > Hello, > I was following Christian's tutorial here: > http://liquid-reality.de/display/liquid/2011/12/22/ > Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi > > And I also found come blog posts from JB that show how to deploy RESTful > services using blueprint. > > What I couldn't find was an example on how to deploy a RESTful service > where > the resource class is an OSGi service (to take advantage of SCR references > to other services in the resource class). I was able to do it by using a > <reference> element instead of a <bean> element in the blueprint file. Is > this approach correct or will it lead to other problems down the road? > > Thanks! > Marc > > > > > -- > View this message in context: http://karaf.922171.n3.nabble. > com/RESTful-web-service-in-Karaf-using-CXF-and-blueprint-tp4047529.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- -- Christian Schneider http://www.liquid-reality.de <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de> Open Source Architect http://www.talend.com <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
