EJB 3.1: Does it allow injection of beans into resources not managed by the container?
问题 I am using JBoss 6.1 and its not fully EJB 3.1 compliant. As of now, I can't inject an EJB into my Struts action classes (or in any non-Java EE Container-managed class) via @EJB , but will this be possible when the EJB 3.1 specification is fully implemented? If not, will it be too infeasible to have that due to performance reasons in the foreseeable future? 回答1: No container will ever be able to inject anything into a non-managed object. To be able to to inject into an object, the container