title: Retrieve data from a Quartz Job
body: <p>I'm using Quartz Scheduler and I have a job to process accounts: </p>
  
  <pre><code>public class MyJob implements Job {
  
      public void execute(JobExecutionContext ctx) throws JobExecutionException {
          List&lt;String&gt; accounts = (List&lt;String&gt;) ctx.getJobDetail().getJobDataMap().get("accounts");
          for(String account : accounts) {
              // process account
          } 
      }
  
  }
  </code></pre>
  
  <p>This works fine, but I have a button on the webpage and when I click it, I want to see the progress logged to my website. 
  So on clicking the button an ajaxcall is done every second, but how can I return something from this job? </p>
  
  <p>putting it on the jobDataMap didn't seem to work. Or maybe I missed something.</p>