import IE.Iona.Orbix2._CORBA; import IE.Iona.Orbix2.CORBA.SystemException; public class BankServer { private final static String server = "bank"; /** * Creates a new BankServer * * @param Command line arguments@ */ public static void main(String args[]) { new BankServer(); } /** * Constructor for the BankServer class. Creates a new BankImp object and a * new GarbageCollectorImp object, tying to them both to make them ORB aware. */ public BankServer() { try { new _tie_Bank(new BankImp()); new _tie_GarbageCollector(new GarbageCollectorImp(), "gc"); } catch (SystemException se) { System.out.println("BankServer: could not create BankImp\n" + se); } try { _CORBA.Orbix.impl_is_ready(server); } catch (SystemException se) { System.out.println("BankServer: Implementation of bank is not ready\n" + se); } } }