try {
Context ctx = getInitialContext();
// EJB 1.1: Use PortableRemoteObject.narrow() method
ShipHome home = (ShipHome)ctx.lookup("ShipHome");
Ship ship = home.create(1,"Paradise",3000,100000);
int t = ship.getCapacity();
System.out.println("Capacity = " +t);
} catch (Exception e){e.printStackTrace();}