Outubro 2008
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          89
Java class ShapeListServer with main method
import java.rmi.*;
public class ShapeListServer{
public static void main(String args[]){
System.setSecurityManager(new RMISecurityManager());
 try{
ShapeList aShapeList = new ShapeListServant(); 1
            Naming.rebind("Shape List", aShapeList ); 2
System.out.println("ShapeList server ready");
        }catch(Exception e) {
System.out.println("ShapeList server main " + e.getMessage());}
}
}