Announcement Announcement Module
Collapse
No announcement yet.
Spring scheduling with quartz Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring scheduling with quartz

    Hi,

    I have a spring batch job which is automatically scheduled to run using schedulerFactoryBean and cronTrigger.

    When I programatically stop the scheduler using schedulerFactory.stop(), log says that scheduler is stopped, but batch jobs keep firing. Can you please let me know what could be wrong?

    <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="triggers">
    <ref bean="cronTrigger"/>
    </property>
    </bean>

    <bean id="jobDetail" class="org.springframework.scheduling.quartz.JobDe tailBean">
    <property name="jobClass" value="XXX" />
    <property name="group" value="quartz-batch" />
    <property name="jobDataAsMap">
    <map>
    <entry key="jobName" value="XXX"/>
    <entry key="jobLocator" value-ref="jobRegistry"/>
    <entry key="jobLauncher" value-ref="jobLauncher"/>
    </map>
    </property>
    </bean>

    Appreciate your help.

    Thanks.
Working...
X