/* * @(#)BootstrapServer.java 1.5 04/03/01 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.corba.se.internal.CosNaming; import java.util.Enumeration; import java.util.Properties; import java.io.File; import java.io.FileInputStream; import com.sun.corba.se.spi.orb.ORB ; import com.sun.corba.se.spi.resolver.Resolver ; import com.sun.corba.se.spi.resolver.LocalResolver ; import com.sun.corba.se.spi.resolver.ResolverDefault ; import com.sun.corba.se.impl.orbutil.CorbaResourceUtil; import com.sun.corba.se.impl.orbutil.ORBConstants; /** * Class BootstrapServer is the main entry point for the bootstrap server * implementation. The BootstrapServer makes all object references * defined in a configurable file available using the old * naming bootstrap protocol. */ public class BootstrapServer { private ORB orb; /** * Main startup routine for the bootstrap server. * It first determines the port on which to listen, checks that the * specified file is available, and then creates the resolver * that will be used to service the requests in the * BootstrapServerRequestDispatcher. * @param args the command-line arguments to the main program. */ public static final void main(String[] args) { String propertiesFilename = null; int initialPort = ORBConstants.DEFAULT_INITIAL_PORT; // Process arguments for (int i=0;i