Hi all,
I have a scenario where I have a SchedulerFactoryBean and scattered CronTriggerBean bean definitions across multiple JARs. Is there a way to dynamically discover the triggers in the context and register them? SchedulerFactoryBean takes an array (or list) of Triggers as follows:
I would like to discover all CronTriggerBean beans defined in the Spring context and add them to the schedulerFactoryBean? I was thinking of doing it with a BeanPostProcessor but there is no addTrigger() method in schedulerFactoryBean.Code:<bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref bean="triggerBean1" /> <ref bean="triggerBean2" /> </list> </property> </bean>
Thanks a lot!


Reply With Quote
