glassfish
  1. glassfish
  2. GLASSFISH-18564

Naming should use standard lookup names for injection

    Details

    • Type: Improvement Improvement
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: naming
    • Labels:
      None

      Description

      There is somewhere a disconnect between how naming works through proxies for lookup() of EJB TimerService or EJBContext (may be others) vs. falling back into v2-style code (ComponentEnvManagerImpl.EjbContextProxy) for injection of those types.

      The error might be on the DOL registration, so if it is please reassign.

      This is the callstack of the "wrong" sequence:

      at com.sun.ejb.EjbNamingReferenceManagerImpl.getEJBContextObject(EjbNamingReferenceManagerImpl.java:226)
      at com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$EjbContextProxy.create(ComponentEnvManagerImpl.java:915)
      at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:776)
      at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:744)
      at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:169)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:500)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:457)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:614)

        Activity

        marina vatkina created issue -
        Cheng Fang made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Tom Mueller made changes -
        Assignee Cheng Fang [ cf126330 ] guojun.shan [ guojun.shan ]
        guojun.shan made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]

          People

          • Assignee:
            guojun.shan
            Reporter:
            marina vatkina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: