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

CORBA provider Context doen't release resources.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.0, 1.4.2_08, 5.0u5
    • core-libs
    • None
    • b45
    • x86, sparc
    • solaris_8, windows_xp

      I'am using The CosNaming provider.
      Calling new InitialContext().bind(...) make a new ORB instance to be created.
      This instance is never cleanup. The number of ReaderThread used increases.
      I provide a simple test case that shows the problem.

       // Step 1: Instantiate the Hello servant
                  HelloImpl helloRef = new HelloImpl();

      while(true) {
                      Context initialNamingContext = new InitialContext();
      initialNamingContext.rebind("HelloService", helloRef );
      initialNamingContext.close();
      System.out.println("Press a key to continue. Check thread stack");
      System.in.read();
      }

            jhangalsunw Jayalaxmi Hangal (Inactive)
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: