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_COUNT

    Fields inherited from class org.springframework.scheduling.quartz.SchedulerAccessor

    logger, resourceLoader

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.SmartLifecycle

    stop
  • Constructor Details

    • SchedulerFactoryBean

      public SchedulerFactoryBean()
  • Method Details

    • setDataSource

      public void setDataSource(DataSource dataSource)
      Overrides:
      setDataSource in class org.springframework.scheduling.quartz.SchedulerFactoryBean
    • setTransactionManager

      public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
      Overrides:
      setTransactionManager in class org.springframework.scheduling.quartz.SchedulerAccessor