1 Reply Latest reply on Aug 29, 2005 11:00 AM by bill.burke

    Dependency Injection

      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?

      Thanks,
      Darin