From: <forums_at_java.net>
Date: Tue, 12 Mar 2013 23:49:26 -0500 (CDT)
Amit, What Tang has said is correct. GlassFish has OSGi/CDI support. What
that feature enables is that an OSGi service can be injected as a CDI bean
into other CDI beans. You are trying to inject CDI beans into an SCR
component using CDI injection APIs. That's not supported. For that, as Tang
said, a SCR-CDI bridge has to be developed. If you want to see OSGi/CDI in
action, please use this example: http://www.youtube.com/watch?v=vaOpJJ-Xm70
or refer to samples mentioned in
http://glassfish.java.net/public/GF-OSGi-Features.pdf Sahoo