/* ***************************************************************************** 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. ***************************************************************************** */ package CorbaMail; import java.io.*; import java.util.*; import org.omg.CORBA.*; import java.net.*; public class MailServer { // This is the class that actually creates and binds the MailServant object to a Corba name // accessible through Visibroker. public static void main(String args[]) { //initializing the orb System.out.print("\n\n Initializing the mail orb..."); org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null); // creating and registering the MailServant object System.out.print("\n Registering MailServant object..."); org.omg.CORBA.BOA boa = ((com.visigenic.vbroker.orb.ORB)orb).BOA_init(); // this naming method corresponds to the super method in MailServant class (orb,String) Mail MailServerOrb = new MailServant((com.visigenic.vbroker.orb.ORB)orb,"MailServer"); System.out.print("\n Orb created. Exporting new orb..."); // exporting the new mail orb boa.obj_is_ready(MailServerOrb); // tell the orb to wait for and accept client requests System.out.print("\n\n ** The Corba Mail Server has been deployed. **\n The server was bound under the name MailServer on port 14720.\n Now ready for client requests."); boa.impl_is_ready(); } // end main method } //end class