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