try {
// parse the args and try setting the values for these
// properties
processArgs(args);
ORB orb = createORB(args);
if (orb.orbdDebugFlag)
System.out.println( "ORBD begins initialization." ) ;
boolean firstRun = createSystemDirs( ORBConstants.DEFAULT_DB_DIR );
startActivationObjects(orb);
if (firstRun) // orbd is being run the first time
installOrbServers(getRepository(), getActivator());
if (orb.orbdDebugFlag) {
System.out.println( "ORBD is ready." ) ;
System.out.println("ORBD serverid: " +
System.getProperty(ORBConstants.SERVER_ID_PROPERTY));
System.out.println("activation dbdir: " +
System.getProperty(ORBConstants.DB_DIR_PROPERTY));
System.out.println("activation port: " +
System.getProperty(ORBConstants.ORBD_PORT_PROPERTY));
String pollingTime = System.getProperty(
ORBConstants.SERVER_POLLING_TIME);
if( pollingTime == null ) {
pollingTime = Integer.toString(
ORBConstants.DEFAULT_SERVER_POLLING_TIME );
}
System.out.println("activation Server Polling Time: " +
pollingTime + " milli-seconds ");
String startupDelay = System.getProperty(
ORBConstants.SERVER_STARTUP_DELAY);
if( startupDelay == null ) {
startupDelay = Integer.toString(
ORBConstants.DEFAULT_SERVER_STARTUP_DELAY );
}
System.out.println("activation Server Startup Delay: " +
startupDelay + " milli-seconds " );
}
// The following two lines start the Persistent NameService
NameServiceStartThread theThread =
new NameServiceStartThread( orb, dbDir );
theThread.start( );
orb.run();
} catch( org.omg.CORBA.COMM_FAILURE cex ) {
System.out.println( CorbaResourceUtil.getText("orbd.commfailure"));
System.out.println( cex );
cex.printStackTrace();
} catch( org.omg.CORBA.INTERNAL iex ) {