Package org.frankframework.scheduler
Class SchedulerFactoryBean
java.lang.Object
org.springframework.scheduling.quartz.SchedulerAccessor
org.springframework.scheduling.quartz.SchedulerFactoryBean
org.frankframework.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
-
Field Summary
Fields inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
DEFAULT_THREAD_COUNT, PROP_THREAD_COUNTFields inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
logger, resourceLoaderFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDataSource(DataSource dataSource) voidsetTransactionManager(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, stopMethods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTriggersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
SchedulerFactoryBean
public SchedulerFactoryBean()
-
-
Method Details
-
setDataSource
- Overrides:
setDataSourcein classorg.springframework.scheduling.quartz.SchedulerFactoryBean
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) - Overrides:
setTransactionManagerin classorg.springframework.scheduling.quartz.SchedulerAccessor
-