throw new EJBException("Exception getting bids list: " +e+"<br>");
throw new RemoteException("Exception getting bids list: " +e+"<br>");
  public String listBids(Integer userId, String username, String password, ItemHome iHome, QueryHome qHome)   {    Enumeration bidList=null;    Query       q;    BidHome     bidHome;    Bid         bid;    Item        item;    float       price;    String      name;    String      html;    // Get the list of the user's last bids    try     {      q = qHome.create();      bidList = q.getUserBids(userId).elements();    }    catch (Exception e)    {      throw new EJBException("Exception getting bids list: " +e+"<br>");    }    if ((bidList == null) || (!bidList.hasMoreElements()))    {      html = printHTMLHighlighted("<h3>You didn't put any bid.</h3>");      return html;    }    // Lookup bid home interface    try     {      bidHome = (BidHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Bid"),                                                     BidHome.class);    }     catch (Exception e)    {      throw new EJBException("Cannot lookup Bid: " +e+"<br>");    }    html = printUserBidsHeader();    while (bidList.hasMoreElements())     {      // Get the amount of the last bids      try      {        bid = bidHome.findByPrimaryKey((BidPK)bidList.nextElement());      }      catch (Exception e)       {        throw new EJBException("Exception getting bid: " + e +"<br>");      }      // Get the name of the items      try      {        item = iHome.findByPrimaryKey(new ItemPK(bid.getItemId()));        html = html.concat(printItemUserHasBidOn(bid, item, username, password));      }      catch (Exception e)       {        throw new EJBException("Exception getting item: " + e +"<br>");      }      //  display information about user's bids    }    html = html.concat(printItemFooter());    return html;  }