throw new EJBException("Failed to executeQuery " +e);
throw new RemoteException("Failed to executeQuery " +e);
  public float getItemMaxBid(Integer itemId) throws RemoteException  {    Connection        conn = null;    PreparedStatement stmt = null;    float             maxBid = 0;    try     {      conn = dataSource.getConnection();      stmt = conn.prepareStatement("SELECT MAX(bid) AS bid FROM bids WHERE item_id=?");      stmt.setInt(1, itemId.intValue());      ResultSet rs = stmt.executeQuery();      // Get the max      if (rs.next())         maxBid = rs.getFloat("bid");    }    catch (SQLException e)    {      throw new EJBException("Failed to executeQuery " +e);    }    finally    {      try       {        if (stmt != null) stmt.close();	// close statement        if (conn != null) conn.close();	// release connection      }       catch (Exception ignore)       {      }    }    return maxBid;  }