ps.setInt(1, id.intValue());
ResultSet rs = ps.executeQuery();
if (rs.next() == false)
throw new NoSuchEntityException("Customer does not exist " + id.toString());
this.name = rs.getString(1);
AccountLocalHome ah = (AccountLocalHome)new InitialContext().lookup("AccountLocal");
accounts = ah.findByCustomerId(id);
}
catch (Exception e)
{
throw new EJBException("Problem in ejbLoad: " + e);