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"); |
} |
} |