Indeed you can not use @Inject in DS. Instead use @Reference and make sure you export the class you want to inject using @Component. Each dependency injection solution has a certain set of annotations with slightly different abilities and limitations.

Christian

On 15.03.2017 16:46, erwan wrote:
Ok thanks Christian.
I manage to make things work after moving cxf part from blueprint xml
description to component property elements.
For cxf, it seems to be really sensible to configuration as I wasn't able to
give a "/" as org.apache.cxf.servlet.context and neither was able to
configure "org.apache.cxf.rs.address=/" in properties. Anyway, my requests
are received using curl and processed to the database.
I still have issues coming from injected fields.
Can you confirm also that I can't use @Inject in @Component annotated class?
I thought it was possible to inject classes within the same bundle and
inside a @Component annotated class.
I don't really understand why all these solutions are exclusive as well...




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Multiple-bundles-dependencies-injection-pax-cdi-or-blueprint-tp4049756p4049853.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to