Announcement Announcement Module
Collapse
No announcement yet.
Quartz SimpleTriggerBean problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quartz SimpleTriggerBean problem

    Hi,
    what can be the reason that quartz SimpleTriggerBean executes 3 times instead of 1

    my SimpleTriggerBean definition below (as i said, jobDetail target method executes 3 times instead of 1, 3 times after the start delay)

    Code:
    <bean id="siteMapGeneratorTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
    	    <property name="jobDetail" ref="siteMapGeneratorJobDetail" />
    	    <property name="startDelay" value="60000" />
    	    <property name="repeatInterval" value="43200000" />
    </bean>
    
    <bean id="siteMapGeneratorJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
      		<property name="targetObject" ref="siteMapGenerator" />
      		<property name="targetMethod" value="generateSiteMapJobTargetMethod" />
      		<property name="concurrent" value="false" />
    </bean>
    
    <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    	    <property name="triggers">
    	        <list>
    	            <ref bean="collectServicesTrigger" />
    	            <ref bean="siteMapGeneratorTrigger" />
    	        </list>
    	    </property>
    </bean>
    In fact both triggers executes 3 times...


    In my application log file i have found these entries, so 2 separate workers execute each time
    Code:
    org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker
    org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker
    Thans for any helpful answers.
    Last edited by karol_lo; Aug 2nd, 2009, 05:28 PM.

  • #2
    Spring context

    Is it possible that spring context was loaded more than once? Could this be a reason of multiple SimpleTriggerBean executions?

    If yes, how to check that spring context was loaded more than once?

    Comment

    Working...
    X