1. glassfish
  2. GLASSFISH-18732

[UB]Incorrect jndi name of EJB for standalone java client


    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: v2.1, 3.1, 3.1.2, 4.0
    • Fix Version/s: 4.0
    • Component/s: docs
    • Labels:


      Juan reported this in glassfish interest alias:

      According to the documentation
      The lookup for a standalone client should be done using the interoperable global name
      "For a client that doesn't run within a Java EE container, the code just uses the interoperable global name instead of the simple global JNDI name. For example:
      Context ic = new InitialContext(); Object o = ic.lookup("corbaname:iiop:host:port#a/b/Foo");

      But I am trying with the corbaname and I unable to do it work...

      If instead of the corbaname I use the portable global name java:global/HelloWorldEE-ejb/NewSessionBean then it works.

      I checked GlassFish 2.1 doc, and it also contains the same instruction as 3.1.2

      I tend to think this is a oversight in docs and we should correct:

      for 2.x and 3.0, use GlassFish-specific global jndi name for the remote ejb;

      for 3.1 or later, one can use either the portable global jndi name (preferred), or GlassFish-specific global jndi name, for the remote ejb.


        No work has yet been logged on this issue.


          • Assignee:
            Mike Fitch
            Cheng Fang
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: