/* 3/1/2000 */ /* ***************************************************************************** Copyright 2000 by Erica Andrews (cylikon@hotmail.com). All rights reserved. ./ButchWhipAppeal/ ./IcedPinky/ NO portion of this software may be used in ANY way by anyone other than myself without my express written consent. If it is downloaded for testing, it must be deleted from your system within 24 hours. Any other use constitutes piracy and fraudulent misuse of this software, punishable in a court of law. Copyright 2000 by Erica Andrews. All rights reserved. ***************************************************************************** */ import CorbaSearchEng.*; import CorbaSearchEng.CorbaSearch; import java.sql.*; import java.net.*; import java.util.*; import java.io.*; import org.omg.CosNaming.*; // not used import org.omg.CosNaming.NamingContextPackage.*; // not used import org.omg.CORBA.*; public class SearchServer { // Main method, starting the actual server ********** public static void main (String args[]) { try{ // initialize the orb org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null); //creating and registering the SearchServant object org.omg.CORBA.BOA boa = ((com.visigenic.vbroker.orb.ORB)orb).BOA_init(); CorbaSearch searchorb = new SearchServant((com.visigenic.vbroker.orb.ORB) orb,"CorbaSearchEng"); System.out.print("\n\n Preparing CorbaSearch orb for deployment...\n"); //export the new orb boa.obj_is_ready(searchorb); System.out.print(" CorbaSearchEng orb is ready...\n\n"); System.out.print(" ** The Corba Search Server has been deployed. **\n\n The server was bound under the name CorbaSearchEng on port 14720\n"); // sit around and wait anxiously for clients... boa.impl_is_ready(); } catch (Exception exc) { System.out.print(exc+"\n"+exc.getMessage()); } } //end of Main method } //end of class