import Calculations.*;
import org.omg.CORBA.*;

public class InvokeGreatCompute
{
  public static void main (String args[]) 
  {
    try{

      // Create and initialize the ORB
      ORB orb = ORB.init(args, null);
      GreatCompute ref = GreatComputeHelper.narrow(orb.string_to_object(args[0]));
      
      // Call the Hello server object and print the results
      System.out.println("Calculation with 1: "+ref.executeCalculation(1));
      System.out.println("Greeting response : "+ref.tellmeWhoYouAre("Me"));
      System.out.println("Great Calculation with 8: "+ref.executeGreatCalculation(8));
    
    } catch(Exception e) {
        System.out.println("HelloApplet exception: " + e);
        e.printStackTrace(System.out);
    }  
  }
}

