Results 1 to 3 of 3

Thread: SchedulerFactoryBean Executed Twice?

  1. #1

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Are you declaring the job inside Quartz xml file also?
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •