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

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

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

