glassfish
  1. glassfish
  2. GLASSFISH-18732

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

    Details

    • 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:
      None

      Description

      Juan reported this in glassfish interest alias:

      According to the documentation http://docs.oracle.com/cd/E26576_01/doc.312/e24930/jndi.htm#beany
      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
      http://docs.oracle.com/cd/E19879-01/820-4336/beanv/index.html

      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.

        Activity

        Hide
        Mike Fitch added a comment -

        Changed fix version to 4.0 so this issue gets picked up by OSE 4.0 release queries.

        Show
        Mike Fitch added a comment - Changed fix version to 4.0 so this issue gets picked up by OSE 4.0 release queries.
        Hide
        Mike Fitch added a comment -

        Added [UB] to summary and set fix version to 4.0.1 because this fix would be to unbundled documentation.

        Show
        Mike Fitch added a comment - Added [UB] to summary and set fix version to 4.0.1 because this fix would be to unbundled documentation.

          People

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

            Dates

            • Created:
              Updated: