public class PersonClient { public static void main(String [] args){ try { System.out.println("\nPersonClient: getting the stub from the server"); Person person = new Person_Stub(); System.out.println("\nPersonClient: invocation of remote method getAge()"); int age = person.getAge(); System.out.println("\nPersonClient: invocation of remote method getName()"); String name = person.getName(); System.out.println("\nPersonClient: "+name+" is "+age+" years old"); System.out.println("\nPersonClient: invocation of remote method terminate()"); person.terminate(); } catch(Throwable t) {t.printStackTrace();} System.out.println("-----------------------------------------------------\n"); } }