FileDocCategorySizeDatePackage
NameServiceStartThread.javaAPI DocJava SE 5 API1282Fri Aug 26 14:54:18 BST 2005com.sun.corba.se.impl.activation

NameServiceStartThread

public class NameServiceStartThread extends Thread

Fields Summary
private com.sun.corba.se.spi.orb.ORB
orb
private File
dbDir
Constructors Summary
public NameServiceStartThread(com.sun.corba.se.spi.orb.ORB theOrb, File theDir)

	orb = theOrb;
	dbDir = theDir;
    
Methods Summary
public voidrun()

	try {
	    // start Name Service
       	    NameService nameService = new NameService(orb, dbDir );
       	    NamingContext rootContext = nameService.initialNamingContext();
            orb.register_initial_reference( 
                ORBConstants.PERSISTENT_NAME_SERVICE_NAME, rootContext );
        } catch( Exception e ) {
	    System.err.println( 
                "NameService did not start successfully" );
	    e.printStackTrace( );
	}