title: How to make a quartz job create another job to execute after it?
body: <p>I am tying to implement the following algorithm with Quartz and not really sure if it can be done. This is my first attempt at using quartz.</p>
  
  <ul>
  <li>User notification Job - This job computes a monthly report and emails to a user, it expects a user id and other parameters that are used to generate the customized user report</li>
  <li>There are potentially 10,000+ of these reports that need to be generated </li>
  </ul>
  
  <p><strong>Monthly Job to figure who needs reports Fires</strong></p>
  
  <ol>
  <li>search the database to look for users that need to be sent a monthly report </li>
  <li>for each user found create a jobDetail that will compute the monthly report and deliver it to report sender that takes care of sending the report</li>
  <li>schedule each of the jobDetails from step 2 to execute right after this job finishes</li>
  </ol>
  
  <p>What I have not been able to figure out.</p>
  
  <ol>
  <li>How to make sure that monthly job executes in a single transaction so that all users that need a monthly report are identified and jobs are scheduled to notify them</li>
  <li>How to schedule a job right away to execute right after the job that created them?</li>
  </ol>
  
  <p>I am using Spring 3.2 an Quartz 2.1 </p>