hi,
i need to manage the scheduler from my service layer in order to add, remove / modify jobs which are define in the applicationContexte.xml file.
How to pass a ref of the scheduler to my manager ?
Thanks,
Fabien
Printable View
hi,
i need to manage the scheduler from my service layer in order to add, remove / modify jobs which are define in the applicationContexte.xml file.
How to pass a ref of the scheduler to my manager ?
Thanks,
Fabien
You probably have something like this in your XML:
The SchedulerFactoryBean implements the FactoryBean interface, which means that instead of returning an instance of that class, it creates new objects.Code:<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
So you can just useThe returned instance will be of type StdSchedulerFactory, unless you specify another one with the property schedulerFactoryClass.Code:context.getBean("scheduler")