Results 1 to 3 of 3

Thread: SchedulerFactoryBean re-create scheduler

  1. #1

    Default 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">
    <set>
    <value>test</value>
    </set>
    </property>
    </bean>

    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 at 10:09 AM.

  2. #2

    Default

    anyone had this kind of issue earlier?

  3. #3

    Default

    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.
    -Amit

Posting Permissions

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