You can have DS and blueprint in the same bundle but they can only
communicate via OSGi services. So it would be the same as if each was in
its own bundle.

The recommended way to use SOAP and JAX-RS services with DS is to use
CXF-DOSGi. It has DS examples and now allows to configure almost every cxf
feature.
https://github.com/apache/cxf-dosgi/tree/master/samples

You might also want to look into the Aries JAX-RS whiteboard. Which
implements the new OSGi spec.

Best
Christian

2017-10-16 18:08 GMT+02:00 Stephen Munro <[email protected]>:

> I'm in the process of swapping some blueprint based bundles over to use
> declarative services. While I've read up on blueprint vs ds, I was
> wondering if it was feasible to make use of them both in the same bundle.
> I have a bundle which has various CXF interceptors and a Rest service,
> which blueprint has excellent support for, whereas I've not found an easy
> way to manage this with DI. So, unless I can do this, I would like to keep
> the CXF beans within blueprint and use DI for just about everything else.
> Even if it is feasible, is it safe to do so?
> Stephen
>
> --
> Warmest Regards,
>
> Stephen Munro
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Computer Scientist
http://www.adobe.com

Reply via email to