6 Replies Latest reply on Oct 10, 2007 12:51 PM by bdecoste

    Injection at invocation time, not instantiation time

    bdecoste

      A customer is asking for injection to occur at invocation time, not bean instantiation time. This is a non issue for session beans as they are instantiated at invocation time, but it's an issue for Service beans that are instantiated at deploy time. Specifically the problem is if a @Service bean tries to inject @EJB(mappedName="xyz") and that bean is not yet deployed on another node, the @Service bean fails to deploy.

      Another way to resolve this is not to instantiate Service beans until invocation time just like session beans.

      Thoughts?