Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6893617

JDK 6 CNCtx always uses the default ORB and not take java.naming.corba.orb ORB value

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      sparc
    • OS:
      solaris_10

      Backports

        Description

        Problem
        =======
        In JDK 6u14->17, there is changes made to CNCtx where trying
        to lookup a corbaname URL will always use a default SUN JDK ORB.
        Now, the problem is that even though can can pass
        into a specific ORB to use (which is possible to create
        using env.put("java.naming.corba.orb", orb) previously,
        now those code will not work.

        Basically Glassfish's passing the EE ORB which
        have failover and also Dynamic stub capability will now
        not be used since an SE ORB is always used.

        DETAILS
        ========
        The CNCtx fix 6796140 in code

        330 private String initUsingCorbanameUrl(ORB orb, String url, Hashtable env)
        331 throws NamingException {
        ...
        333 if (orb == null)
        334 orb = getDefaultOrb();
        336 try {
        ...
        342 orb = getDefaultOrb(); <==== ISSUE
        343 setOrbAndRootContext(orb, corb...

        is always using the default SE ORB despite one/user passing in
        their own ORB to use. As such special ORB functionality is lost.
        It is believed that line 342 should not be needed.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kevinw Kevin Walls
                Reporter:
                cchea Chee-Weng Chea (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: