users@glassfish.java.net

Re: Using CDI inside an OSGi bundle

From: <forums_at_java.net>
Date: Wed, 21 Sep 2011 22:49:22 -0500 (CDT)

Hi Sahoo -

In this context - MyTestClass is the main class of the bundle (created within
the activator actually). So I couldn't really instantiate it as an injection
itself.

I thought CDI allowed the ability to make most pojo's injectable into not
only managed classes - but other pojo's as well (which are @Default by
default - no)?. Seems this must not be the case.

I am wanting to create some resource/jms/producer beans that can be injected
into the main class (MyTestClass). MyTestClass in this case is also
registered as an OSGi service that is used via declarative service in other
places.

Thanks for the response.

--
Robert B. Weeks
--
[Message sent by forum member 'vaiism']
View Post: http://forums.java.net/node/845539