Is there any hope that we will someday be able to inject EJBs into, say, Struts Actions or arbitrary POJOs? Right now, in order to accomplish this, one must integrate Hivemind or Nanocontainer for non EJB3 objects.
What would be dreamy is if we could inject EJBs, Resources (or any JNDI lookup) into any class. Then we could write an MBean to setup the registry in container, or just use simple getter/setters when testing out of container.
Doing this through annotations would be a big simplication over all the existing IoC frameworks currently available, including the much loved Spring IoC. Any hope of seeing something like this someday?
How would you like the API to be? AOP could be used to look for JEE injection annotations and inject at construction. Or, we could have an API that you invoke that did the same.
Also, can you email this exact request to:
JBoss is but one voice in the JCP. Email to both so that I can say "YES, THE SPEC NEEDS THIS!"