Note that there are some explanatory texts on larger screens.

plurals
  1. POQuartz CRON trigger not fired when expected
    text
    copied!<p>I have a simple quartz trigger running in Spring 2.5.6-SEC01.</p> <p>Trigger definition looks like this:</p> <pre><code>&lt;bean id="AdvicesCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"&gt; &lt;property name="jobDetail" ref="AdvicesQuartzJob"/&gt; &lt;property name="cronExpression" value="0 20/15 * * * ?"/&gt; &lt;/bean&gt; </code></pre> <p>This is my scheduler factory:</p> <pre><code>&lt;bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt; &lt;property name="triggers"&gt; &lt;list&gt; &lt;ref bean="AdvicesCronTrigger"/&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre> <p>I've read <a href="http://www.quartz-scheduler.org/docs/tutorial/TutorialLesson06.html" rel="nofollow noreferrer">this documentation</a> about firing CRON triggers from Quartz. This is an excerpt:</p> <blockquote> <p>CronTrigger Example 1 - an expression to create a trigger that simply fires every 5 minutes</p> <p>"0 0/5 * * * ?"</p> </blockquote> <p>Today I fired my program at 9:40. This is my execution output:</p> <p><strong>Edit:</strong> Bobby is right in his appreciation. I've updatted my execution log:</p> <blockquote> <p>2010-02-11 09:50:00,000 INFO - START</p> <p>2010-02-11 10:20:00,000 INFO - START</p> <p>2010-02-11 10:35:00,000 INFO - START</p> <p>2010-02-11 10:50:00,000 INFO - START</p> <p>2010-02-11 11:20:00,000 INFO - START</p> <p>2010-02-11 11:35:00,000 INFO - START</p> </blockquote> <p>I expected that this trigger will be fired at </p> <blockquote> <p>9:50</p> <p>10:05</p> <p>10:20</p> <p>10:35</p> <p>...</p> </blockquote> <p>How to accomplish this? Which CRON expression use?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload