Package javax.ejb

Examples of javax.ejb.EJBException


      GroupLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // Transaction not required cause even if adding member fails its ok.
      remote.deleteGroup(groupId);
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(CreateException ce){
      throw new EJBException(ce);
    }
  }   // end deleteGroup() method
View Full Code Here


      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteGroupMember(groupId, groupMemberId);
    } catch (NamingException re) {
      throw new EJBException(re);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    }
  } // end deleteGroupMember() method
View Full Code Here

      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteMOC(mocId,  contactId,  userId,true);
      remote.updateModified("moc", contactId, userId, mocId);
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(CreateException ce){
      throw new EJBException(ce);
    }
  }   // end deleteMOC() method
View Full Code Here

            ctx.getUserTransaction().commit();
          }
        }
      }
    }catch(NamingException fe){
      throw new EJBException(fe);
    }catch(RemoveException fe){
      throw new EJBException(fe);
    }catch(FinderException fe){
      System.out.println("[Exception][ContactFacadeEJB.deleteEntity] Exception Thrown: "+fe);
    }catch(NotSupportedException nse){
      throw new EJBException(nse);
    }catch(RollbackException rbe){
      //TODO we shouldn't do like this Since we aren't parsing the record information.
      // Its a time being hack.
      throw new AuthorizationFailedException("Entity - deleteEntity");
    }catch(SystemException se){
      throw new EJBException(se);
    }catch(HeuristicMixedException hme){
      //TODO we shouldn't do like this Since we aren't parsing the record information.
      // Its a time being hack.
      throw new AuthorizationFailedException("Entity - deleteEntity");
    }catch(HeuristicRollbackException hre){
View Full Code Here

            ctx.getUserTransaction().commit();
          }
        }
      }
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(FinderException fe){
      System.out.println("[Exception][ContactFacadeEJB.deleteIndividual] Exception Thrown: "+fe);
    }catch(RemoveException fe){
      throw new EJBException(fe);
    }catch(NotSupportedException nse){
      throw new EJBException(nse);
    }catch(RollbackException rbe){
      //TODO we shouldn't do like this Since we aren't parsing the record information.
      // Its a time being hack.
      throw new AuthorizationFailedException("Individual - deleteIndividual");
    }catch(SystemException se){
      throw new EJBException(se);
    }catch(HeuristicMixedException hme){
      //TODO we shouldn't do like this Since we aren't parsing the record information.
      // Its a time being hack.
      throw new AuthorizationFailedException("Individual - deleteIndividual");
    }catch(HeuristicRollbackException hre){
View Full Code Here

  public ValueListVO getStandardReportList(int individualId, ValueListParameters parameters)
  {
    try {
      return getReportList(parameters, ReportConstants.STANDARD_REPORT_CODE);
    } catch (Exception e) {
      throw new EJBException(e);
    }
  }
View Full Code Here

  public ValueListVO getAdHocReportList(int individualId, ValueListParameters parameters)
  {
    try {
      return getReportList(parameters, ReportConstants.ADHOC_REPORT_CODE);
    } catch (Exception e) {
      throw new EJBException(e);
    }
  }
View Full Code Here

      cvdl.setInt(2, parameters.getExtraId());
      list = cvdl.executeQueryList(1);
      return new ValueListVO(list, parameters);
    } catch (Exception e) {
      logger.error("[getReportList] Exception thrown.", e);
      throw new EJBException(e);
    } finally {
      cvdl.destroy();
    }
  }
View Full Code Here

          index = reportIds[i];
          report = reportHome.findByPrimaryKey(new ReportPK(index, this.dataSource));
          report.remove();
        }
      } catch (ObjectNotFoundException e) {
        throw new EJBException("Report object not found, id = " + index);
      }
    } catch (Exception e) {
      throw new EJBException(e);
    }
  }
View Full Code Here

    SelectVO selects = new SelectVO();
    try {
      selects.setTopTables(getTables(moduleId));
      return selects;
    } catch (Exception e) {
      throw new EJBException(e);
    }
  }
View Full Code Here

TOP

Related Classes of javax.ejb.EJBException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.