Package com.centraview.activity.helper

Examples of com.centraview.activity.helper.ActivityHelperLocal


    ActivityVO av = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      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);
    }
View Full Code Here


  {
    int activityType = -1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(dataSource);
      activityType = remote.getActivityType(activityId);
    } catch (Exception e) {
      System.out.println("[Exception][ActivityFacadeEJB.getActivityType] : " + e.toString());
    }
    return activityType;
  } // end of getActivityType method
View Full Code Here

    }

    try {
      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(dataSource);
      remote.updateActivity(activityvo, userid);

      commitAttachment(activityvo, userid);

    } catch (Exception e) {
      System.out.println("[Exception][ActivityFacadeEJB.update] Exception Thrown: " + e);
View Full Code Here

    }

    try {
      InitialContext ic = CVUtility.getInitialContext();
      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

  public void updateStatus(int activityID, int attendeeID, String status)
  {
    try {
      InitialContext ctx = new InitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ctx.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(status);

      remote.updateStatus(activityID, attendeeID, status);
    } catch (Exception e) {
      System.out.println("[Exception][ActivityFacadeEJB.updateStatus] Exception Thrown: " + e);
      e.printStackTrace();
    }
  }
View Full Code Here

  public void deleteIndividualFromAttendee(int activityId, int userId)
  {
    try {
      InitialContext ctx = new InitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ctx.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(dataSource);
      remote.deleteIndividualFromAttendee(activityId, userId);
    } catch (Exception e) {
      System.out.println("[Exception][ActivityFacadeEJB.updateStatus] Exception Thrown: " + e);
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of com.centraview.activity.helper.ActivityHelperLocal

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.