Mar 10th, 2010, 09:58 AM
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"/>
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.
Mar 13th, 2010, 08:25 PM
anyone had this kind of issue earlier?
Mar 15th, 2010, 12:47 PM
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.