try{
Context jndiContext = getInitialContext();
CruiseHome home = (CruiseHome)jndiContext.lookup("CruiseHome");
Cruise c = home.create(1,"Eastern Journey",1);
System.out.println(c.getName());
System.out.println(c.getShipID());
}catch(java.rmi.RemoteException re){re.printStackTrace();}
catch(javax.naming.NamingException ne){ne.printStackTrace();}
catch(javax.ejb.CreateException ce){ce.printStackTrace();}