users@glassfish.java.net

_at_Inject bean into EJB

From: <glassfish_at_javadesktop.org>
Date: Wed, 03 Mar 2010 09:22:44 PST

Hi

I am trying to inject a bean (DAO) into an EJB but it does not seam to work. I am using GlassFish 3.0.

@Stateless
class TestBean {
  @Inject
  private TestDao testDao;
  ...
}

class TestDao {
  ...
}

Am I missing something?

Thanks
Alex
[Message sent by forum member 'evx' (evangelista_at_gmx.net)]

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