[jboss-user] [EJB 3.0] - Dependency Injection in EJB3

Swamy Nathan do-not-reply at jboss.com
Sat Jul 10 10:51:42 EDT 2010

Swamy Nathan [http://community.jboss.org/people/raster3] created the discussion

"Dependency Injection in EJB3"

To view the discussion, visit: http://community.jboss.org/message/552045#552045


1. ) Can I inject a simple POJO Java bean/object using @javax.annotation.Resource into a EJB- Can we do this inside an EJB. 
          private SimpleNotEjbType type;

2. ) Can I inject a DataSource using @javax.annotation.Resource into a non-ejb POJO being invoked by my EJB?
     public class SimpleNotEjbType
          private DataSource ds;



Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100710/4d2ce834/attachment.html 

More information about the jboss-user mailing list