title: Spring: How to Monitor Quartz Job from controller?
body: <p>I have created two jobs in Spring project which run at two different time independent to each other.  </p>
  
  <pre><code>public class JobA extends QuartzJobBean
  {
      @Override
      protected void executeInternal(JobExecutionContext arg0)throws JobExecutionException 
      {
        // my actual work
      }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class JobB extends QuartzJobBean
  {
      @Override
      protected void executeInternal(JobExecutionContext arg0)throws JobExecutionException 
      {
        // my actual work
      }
  }
  </code></pre>
  
  <p>both are running fine at given time, but I need to provide some monitor functionality through which we can check whether jobs are running or not.<br>
  I came across <a href="http://quartz-scheduler.org/documentation/quartz-1.x/tutorials/TutorialLesson07" rel="noreferrer">JobListener</a> and have seen other resources too but getting confused at the time of its implementation. I am not getting exactly how to use this listener in <strong>Spring Controller</strong> so that I can monitor both job in my jsp.</p>
  
  <p>Update: 
  I am using Quartz 1.8. How to check if any job is halted ? Is there any way we can restart any halted or broken job ?</p>