Class NameService

java.lang.Object
com.sun.corba.se.impl.naming.pcosnaming.NameService

public class NameService extends Object
Since:
JDK1.2
Author:
Hemanth Puttaswamy
  • Constructor Details

    • NameService

      public NameService(ORB orb, File logDir) throws Exception
      Create NameService which starts the Root Naming Context in Persistent CosNaming
      Parameters:
      orb - an ORB object.
      logDir - a File
      Throws:
      Exception - a Java exception.
  • Method Details

    • initialNamingContext

      public NamingContext initialNamingContext()
      This method returns the Root Naming Context
    • NewContext

      public NamingContext NewContext() throws SystemException
      This method creates a NewContext, This will internally invoked from NamingContextImpl. It is not a public API. NewContext is in this class because a Persiten reference has to be created with Persistent NameService POA.
      Throws:
      SystemException