Basic HTML version of Foils prepared May 19 1999

Foil 55 Fragment of Main Client Program Code

From CORBA Common Object Request Broker Architecture Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Wojtek Furmanski, Nancy McCracken, Chao-Wei Ou, Shrideep Pallickara


public class
CountClient extends Applet {
................... Method to Initialize ....................
private void connectToCountObject() {
// Initialize the ORB.
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(this);
// Calculate Start time
long startTime = System.currentTimeMillis();
counter = Counter.CountHelper.bind(orb, "Counter");
long stopTime = System.currentTimeMillis();
System.out.println("Avg time to setup Orblet = "
+ ((stopTime - startTime)/1000f) + " secs");
}
}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999