Announcement Announcement Module
Collapse
No announcement yet.
SchedulerFactoryBean Executed Twice? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SchedulerFactoryBean Executed Twice?

    Hi,

    I am using quartz with a DB backend and it seems that my triggers all get executed twice... any idea's greatly appreciated!

    Code:
    	<bean id="scheduleFactoryBean" singleton="true" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    			<property name="dataSource" ref="dataSource"/>
    			<property name="schedulerName" value="GBIF Index Scheduler"/>
    			<property name="quartzProperties">
    				<props>
    					<prop key="org.quartz.threadPool.threadCount">25</prop>					
    				</props>
    			</property>
    	</bean>
    Code:
    INFO  [QuartzScheduler]  Quartz Scheduler v.1.5.2 created.
    INFO  [StdSchedulerFactory]  Quartz scheduler 'GBIF Index Scheduler' initialized from an externally provided properties instance.
    INFO  [StdSchedulerFactory]  Quartz scheduler version: 1.5.2
    INFO  [QuartzScheduler]  Scheduler GBIF Index Scheduler_$_NON_CLUSTERED started.
    INFO  [WorkflowLaunchJob]  Trigger executing: INDEX_PROVIDER.1 - 24/08/2006 14:41:22
    INFO  [WorkflowLaunchJob]  Launching processor [indexDataProvider] from quartz job: INDEX_PROVIDER.The Academy of Natural Sciences (janthina.acnatsci.org)
    INFO  [WorkflowLaunchJob]  Trigger executing: INDEX_PROVIDER.1 - 24/08/2006 14:41:22
    INFO  [WorkflowLaunchJob]  Launching processor [indexDataProvider] from quartz job: INDEX_PROVIDER.The Academy of Natural Sciences (janthina.acnatsci.org)

  • #2
    Are you declaring the job inside Quartz xml file also?

    Comment


    • #3
      I forgot to reply to this when I fixed it... I was using Quartz's trigger utils and in had a repeatCount. Apparently repeat count of 1 means it is executed twice. Kind of makes sense but not really intuitive IMHO

      Comment

      Working...
      X