All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.smallmind.schedule.quartz.quartz.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

  <import resource="classpath:org/smallmind/schedule/quartz/quartz-liquibase.xml"/>

  <bean id="schedulerFactory" class="org.smallmind.schedule.quartz.spring.SpringSchedulerFactory" depends-on="quartzLiquibase">
    <constructor-arg index="0">
      <props>
        <prop key="org.quartz.scheduler.instanceName">Scheduler</prop>
        <prop key="org.quartz.scheduler.instanceId">AUTO</prop>
        <prop key="org.quartz.scheduler.threadsInheritContextClassLoaderOfInitializer">true</prop>
        <prop key="org.quartz.scheduler.interruptJobsOnShutdown">true</prop>
        <prop key="org.quartz.scheduler.interruptJobsOnShutdownWithWait">true</prop>
        <prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
        <prop key="org.quartz.threadPool.threadCount">4</prop>
        <prop key="org.quartz.scheduler.rmi.export">true</prop>
        <prop key="org.quartz.scheduler.rmi.createRegistry">as_needed</prop>
        <prop key="org.quartz.jobStore.misfireThreshold">60000</prop>
        <prop key="org.quartz.jobStore.class">org.quartz.impl.jdbcjobstore.JobStoreTX</prop>
        <prop key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.StdJDBCDelegate</prop>
        <prop key="org.quartz.jobStore.dataSource">dsOne</prop>
        <prop key="org.quartz.jobStore.tablePrefix">QRTZ_</prop>
        <prop key="org.quartz.jobStore.useProperties">true</prop>
        <prop key="org.quartz.jobStore.isClustered">true</prop>
        <prop key="org.quartz.jobStore.clusterCheckinInterval">20000</prop>
        <prop key="org.quartz.dataSource.dsOne.driver">${jdbc.driver.classname}</prop>
        <prop key="org.quartz.dataSource.dsOne.URL">${jdbc.url.quartz}</prop>
        <prop key="org.quartz.dataSource.dsOne.user">${jdbc.username.quartz}</prop>
        <prop key="org.quartz.dataSource.dsOne.password">${jdbc.password.quartz}</prop>
        <prop key="org.quartz.dataSource.dsOne.validationQuery">select 1</prop>
        <prop key="org.quartz.dataSource.dsOne.maxConnections">7</prop>
      </props>
    </constructor-arg>
  </bean>

  <bean id="scheduler" factory-bean="schedulerFactory" factory-method="getScheduler" destroy-method="shutdown"/>

  <bean id="schedulerMonitor" class="org.smallmind.schedule.quartz.jmx.SchedulerMonitor">
    <constructor-arg index="0" name="scheduler" ref="scheduler"/>
  </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy