2 Replies Latest reply on Apr 23, 2010 4:14 PM by anikgnr

    FacesMessages does not work in Quartz async call

    ssarver

      No faces messages show up in the view using the following statement.
      What could I use as an alternative?



      FacesMessages.instance().add("Job run: RemoteJob(" + remoteJob.getId() + ")");




      when invoked from inside:



      @Name("remoteJobProcessor")
      @AutoCreate
      public class RemoteJobProcessor {
        @Logger Log log;
        @In EntityManager entityManager;
        @In QuartzTriggerHandle timer;
      
        @Asynchronous
        @Transactional
        public QuartzTriggerHandle processJob(
                       @JobName String jobName,
                       @Expiration Date start,
                       @IntervalDuration Long interval, 
                       @FinalExpiration Date stoptime) {
      
      ...
      }