0 Replies Latest reply on May 15, 2008 8:52 AM by Tom Baeyens

    new environment for jobWasAdded ?

    Tom Baeyens Master

       

      log.trace("awaking JobExecutor");
      environmentFactory.openEnvironment();
      try {
       Environment.getCurrent().get(JobExecutor.class).jobWasAdded();
      } finally {
       Environment.getCurrent().close();
      }
      


      it doesn't make sense to me that a separate environment is opened to call the jobWasAdded method. so i changed it in

      jobExecutor.jobWasAdded();


      and the jobExecutor is now injected by the environment