Package com.centraview.projects.task

Examples of com.centraview.projects.task.TaskLocal


  {
    int id = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);
      id = remote.addTask(userId, tvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.addProjectTask] Exception Thrown: " + e);
      e.printStackTrace();
    }
    return (id);
View Full Code Here


    }

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);
      remote.updateTask(userId, tvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.updateProjectTask] Exception Thrown: " + e);
      e.printStackTrace();
    }
    return;
View Full Code Here

    }

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.deleteTask(taskID, individualID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

    TaskVO taskVO = null;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TaskLocalHome home = (TaskLocalHome)ic.lookup("local/Task");
      TaskLocal remote = (TaskLocal)home.create();
      remote.setDataSource(this.dataSource);

      taskVO = remote.getTask(taskId, userId);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getTask] Exception Thrown: " + e);
      e.printStackTrace();
    }
    return taskVO;
View Full Code Here

      if (result != null) {
        // if we have any results from the query set up the connection
        // to the local task session EJB
        InitialContext ctx = new InitialContext();
        TaskLocalHome taskHome = (TaskLocalHome)ctx.lookup("local/Task");
        TaskLocal taskBean = taskHome.create();
        taskBean.setDataSource(dataSource);
        // the iterate through the results of the query grabbing a taskVO
        // for each id.
        Iterator i = result.iterator();
        while (i.hasNext()) {
          HashMap resultRow = (HashMap)i.next();
          Number taskId = (Number)resultRow.get("taskId");
          try {
            TaskVO task = taskBean.getTask(taskId.intValue(), individualId);
            taskList.add(task);
          } catch (AuthorizationFailedException afe) {
            // no reason to completely fail here, it will just be one less thing
            // on our list. dump it in the logs, because it is indicative of an
            // underlying problem
View Full Code Here

TOP

Related Classes of com.centraview.projects.task.TaskLocal

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.