title: spring integration + cron + quartz in cluster?
body: <p>I have a spring integration flow triggered by the cron expression like follows:</p>
  
  <pre><code>&lt;int-ftp:inbound-channel-adapter id="my-input-endpoint" ...&gt;
      &lt;int:poller trigger="my-trigger"/&gt;
  &lt;/int-ftp:inbound-channel-adapter&gt;
  
  &lt;bean id="my-trigger"
     class="org.springframework.scheduling.support.CronTrigger"&gt;
    &lt;constructor-arg value="0 * * * * *" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>It works fine. But now I have to extend the implementation to make it cluster ready (job execution on only one cluster node at the same point of time). </p>
  
  <p>My wish would be to use the Quartz framework in the cluster mode (persisting the job status in the database) to trigger this integration flow. Quartz provides a beautful solution out of the box.  The only problem is how to integrate the Quartz with the existing inbout-channer-adaptor? The "trigger" attribute of the "poller" accepts only the subclasses of the org.springframework.scheduling.Trigger. I could not find any bridge between "poller trigger" and the Quartz framework.</p>
  
  <p>many thanks in advance!</p>