Hi
I have a strange problem that I have spent many hours to figure out with no successI am using Quartz Scheduler with Spring on Tomcat v5.5. I have a job "digestJob" that I am trying to invoke ONCE with a CronTrigger everyday at 3 PM. But strangely, "digestJob" is being invoked TWICE for some reason.
Here is my cronTrigger configuration:
and here is my SchedulerFactoryBean configuration:Code:<bean id="digestCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="digestJob" /> <property name="cronExpression" value="0 0 15 * * ?" /> </bean>
An important point I noted is that when I use SimpleTriggerBean:Code:<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref bean="digestCronTrigger" /> </list> </property> </bean>
everything works fine, trigger is fired once every 10 seconds. Why things go wrong in case of CronTriggerBean? Is there something wrong with my cronExpression or is there some other property that I am missing? Or is it a bug and there is some work around for it? Any help will be much appreciated!Code:<bean id="digestTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"> <property name="jobDetail" ref="digestJob" /> <property name="startDelay" value="0" /> <property name="repeatInterval" value="10000" /> </bean>
Thanks


I am using Quartz Scheduler with Spring on Tomcat v5.5. I have a job "digestJob" that I am trying to invoke ONCE with a CronTrigger everyday at 3 PM. But strangely, "digestJob" is being invoked TWICE for some reason.
Reply With Quote

