Package nl.nn.adapterframework.scheduler
Class SchedulerFactoryBean
- java.lang.Object
-
- org.springframework.scheduling.quartz.SchedulerAccessor
-
- org.springframework.scheduling.quartz.SchedulerFactoryBean
-
- nl.nn.adapterframework.scheduler.SchedulerFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<org.quartz.Scheduler>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.ResourceLoaderAware
,org.springframework.context.SmartLifecycle
public class SchedulerFactoryBean extends org.springframework.scheduling.quartz.SchedulerFactoryBean
Extending the Spring SchedulerFactoryBean because it starts the Quartz scheduler instance. This instance can get detached from the ApplicationContext when it fails to execute the refresh method. The issue arose when the IBIS is reconnecting but fails to init the txManager.- Author:
- Niels Meijer
-
-
Constructor Summary
Constructors Constructor Description SchedulerFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDataSource(DataSource dataSource)
void
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
afterPropertiesSet, createScheduler, destroy, getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObject, getObjectType, getPhase, getScheduler, isAutoStartup, isRunning, isSingleton, setApplicationContext, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setExposeSchedulerInRepository, setJobFactory, setNonTransactionalDataSource, setPhase, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactory, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, start, startScheduler, stop
-
Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTriggers
-
-
-
-
Method Detail
-
setDataSource
public void setDataSource(DataSource dataSource)
- Overrides:
setDataSource
in classorg.springframework.scheduling.quartz.SchedulerFactoryBean
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
- Overrides:
setTransactionManager
in classorg.springframework.scheduling.quartz.SchedulerAccessor
-
-