Bank Service


Powered by: LiveConnect, IIOP
Last modified: Tue May 6 17:43:18 1997

This page activates the Java implementation of the IDL interfaces ::IDL::AccountManager and ::IDL::Account. It creates an instance of ::IDL::AccountManager called 'Post-Modern Bank' and registers this object for remote access.


// Initialize the ORB. print("Initializing the ORB... "); project.orb = Packages.org.omg.CORBA.ORB.init(); println("done."); // initialize the boa print("Initializing the BOA... "); project.boa = project.orb.BOA_init(); println("done."); // Create the account manager object. print("Creating the Account Manager Service named \"Post-Modern Bank\"..."); project.accountMgr = new Packages.bankService.AccountManager("Post-Modern Bank"); println("done."); // Export the newly create object. project.boa.obj_is_ready(project.accountMgr); println("Post-Modern Bank is open for business.
"); println("Waiting for clients...");