users@glassfish.java.net

Re: JAX-RS on Glassfish 3.1: _at_EJB injection?

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 Jun 2010 14:47:50 PDT

To be very clear: CDI does not work with the project as it is attached.

If instead of @RequestScoped I annotate my resource with @ManagedBean, then not only is the EJB injected properly (!) but so is the "control group" CDI resource. It appears that without @ManagedBean, no resource injection of any kind--CDI, EJB or otherwise--occurs; with it, it appears that all resource injection occurs.

Thoughts? This is getting crazy.

Best,
Laird
[Message sent by forum member 'ljnelson']

http://forums.java.net/jive/thread.jspa?messageID=474391