users@glassfish.java.net

CDI inside OSGI (glassfish v3.1)

From: CasMeiron <casmeiron_at_gmail.com>
Date: Mon, 26 Jul 2010 09:33:21 -0300

Hello guys,

Does the CDI works as expected inside bundles deployed on OSGI?

I've tried couple of simple examples and couldn't get it to inject the
dependencies.

Example (WAB):

Simple POJO with @SessionScoped annotation.
One Servlet with @WebServlet annotation and with a property @Inject to get
the described POJO (NullPointer when try to access it).

Thanks in advance.

-------------------------------
Paulo Reis