throw new EJBException("Cannot lookup User or Item: " +e+"<br>");
throw new RemoteException("Cannot lookup User or Item: " +e+"<br>");
  public void createComment(Integer fromId, Integer toId, Integer itemId, int rating, String comment)  {    // Try to find the user corresponding to the 'to' ID    UserHome uHome;    try     {      uHome = (UserHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/User"),                                                    UserHome.class);    }     catch (Exception e)    {      throw new EJBException("Cannot lookup User or Item: " +e+"<br>");    }    CommentHome cHome;    try     {      cHome = (CommentHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Comment"),                                                       CommentHome.class);    }     catch (Exception e)    {      throw new EJBException("Cannot lookup Comment: " +e+"<br>");    }    utx = sessionContext.getUserTransaction();    try    {      utx.begin();      Comment c = cHome.create(fromId, toId, itemId, rating, comment);      User    to = uHome.findByPrimaryKey(new UserPK(toId));      to.updateRating(rating);      utx.commit();    }    catch (Exception e)    {      try      {        utx.rollback();        throw new EJBException("Error while storing the comment (got exception: " +e+")<br>");      }      catch (Exception se)       {        throw new EJBException("Transaction rollback failed: " + e +"<br>");      }    }		  }