JBoss Community

Does dependency injection work on helper classes?

modified by Administrator Administrator in EJB3 - View the full document

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

Create a new document in EJB3 at Community