Package javax.ejb

Examples of javax.ejb.EJBException


      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(dataSource);
      av = remote.getActivity(activityId, userid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return av;
  }
View Full Code Here


      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(dataSource);
      remote.deleteActivity(activityId, userId);
    } catch (NamingException ne) {
      throw new EJBException(ne);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    }
  }
View Full Code Here

          }
        }
      }
    } catch (Exception e) {
      logger.error("[getTaskList]: Exception", e);
      throw new EJBException(e);
    } finally {
      cvdal.destroy();
    }
    return taskList;
  }
View Full Code Here

            newAndModifyMap.put("MODIFY",modObjs);
          } catch (Exception e) {
            System.out.println("[Exception][QBSyncEJB.chooseNewAndModify] Exception Thrown: " + e);
            logger.debug("Error detecting new and modified objects: "+ e);
            e.printStackTrace();
            throw new EJBException(e);
          }
          return newAndModifyMap;
        }
View Full Code Here

      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteLiterature(elementid, userid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }

  }
View Full Code Here

      LiteratureLocalHome home = (LiteratureLocalHome)ic.lookup("local/Literature");
      LiteratureLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteLiterature(activityid, individualID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return result;

  }
View Full Code Here

      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteEvent(eventid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return result;
  }
View Full Code Here

      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteEventRegister(mapEvent);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return result;
  }
View Full Code Here

      ListLocalHome listlocalhome = (ListLocalHome)initialcontext.lookup("local/List");
      ListLocal listlocal = listlocalhome.create();
      listlocal.setDataSource(this.dataSource);
      listlocal.deleteList(i);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return true;
  }
View Full Code Here

      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      result = (String)remote.deletePromotion(userId, elementID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return result;

  }
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.