Outubro 2008
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          89
Java client of ShapeList
import java.rmi.*;
import java.rmi.server.*;
import java.util.Vector;
public class ShapeListClient{
    public static void main(String args[]){
System.setSecurityManager(new RMISecurityManager());
ShapeList aShapeList = null;
try{
aShapeList  = (ShapeList) Naming.lookup("//bruno.ShapeList") ;   1
Vector sList = aShapeList.allShapes();     2
} catch(RemoteException e) {
         System.out.println(e.getMessage());
} catch(Exception e) {
         System.out.println("Client: " + e.getMessage());}
    }
}