Announcement Announcement Module
No announcement yet.
SchedulerFactoryBean re-create scheduler Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SchedulerFactoryBean re-create scheduler

    I am definiting schedulerFactoryBean and using in my application's scheduler service.

    <bean id="schedulerService" class="com.intralinks.scheduler.QuartzSchedulerSer vice" lazy-init="true">
    <property name="scheduler" ref="schedulerFactoryBean" />
    <property name="triggerFactory" ref="triggerFactoryBean"/>
    <property name="knownCategories">

    If want to re-create the scheduler without during runtime how do I do it.
    I am using JMX MBean to pause and re-start the scheduler. But I am unable to reload the scheduler.

    SchedulerFactoryBean, is creating an instance of Scheduler(StdScheulder) while the bean is instantaited, but if want to create the instance of the schduler again, I am unable to do it during runtime from MBean. Have anyone faced this issue earlier, if so any thoughts on it.?
    Last edited by abandarupalli; Mar 10th, 2010, 10:09 AM.

  • #2
    anyone had this kind of issue earlier?


    • #3
      The scheduler factory bean implements lifecycle methods. You need to make sure they are called for the scheduler to be stopped/re-started for this to work. Refer to the javadocs of SchedulerFactoryBean and SmartLifeCycle classes.