[jboss-user] [EJB3] - Does dependency injection work on helper classes?

Administrator Administrator do-not-reply at jboss.com
Thu Jan 20 11:00:00 EST 2011


Administrator Administrator [http://community.jboss.org/people/admin] modified the document:

"Does dependency injection work on helper classes?"

To view the document, visit: http://community.jboss.org/docs/DOC-13347

--------------------------------------------------------------
No it doesn't. Java EE 5.0 supports dependency injection with managed classes (ejbs, mbeans, servlets...), so you can't use dependency  injection from helper classes. You must still use JNDI if you  want to use resources or services from a helper class.
--------------------------------------------------------------

Comment by going to Community
[http://community.jboss.org/docs/DOC-13347]

Create a new document in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110120/a65f00d8/attachment.html 


More information about the jboss-user mailing list