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 -------------------------------------------------------------- Hi, 1. ) Can I inject a simple POJO Java bean/object using @javax.annotation.Resource into a EJB- Can we do this inside an EJB. @Resource 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 { @Resource(mappedName="MyDS") private DataSource ds; } Thanks. S -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/552045#552045] Start a new discussion in EJB 3.0 at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
