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

org.smallmind.schedule.quartz.job.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">

  <bean id="group.nameDetail" class="org.quartz.impl.JobDetailImpl">
    <property name="description" value="Description of detail"/>
    <property name="group" value="group"/>
    <property name="name" value="nameJob"/>
    <property name="jobClass" value="jobClass"/>
    <property name="durability" value="true"/>
    <property name="requestsRecovery" value="false"/>
  </bean>

  <bean id="group.nameTrigger" class="org.quartz.impl.triggers.CronTriggerImpl">
    <property name="description" value="Run every 10 minutes"/>
    <property name="group" value="group"/>
    <property name="name" value="nameTrigger"/>
    <property name="jobGroup" value="group"/>
    <property name="jobName" value="nameJob"/>
    <property name="cronExpression" value="0 0/10 * * * ?"/>
  </bean>

  <bean id="group.nameJob" class="jobClass" scope="prototype"/>

  <bean class="org.smallmind.schedule.quartz.spring.CronJobInitializingBean">
    <property name="scheduler" ref="scheduler"/>
    <property name="jobMap">
      <map>
        <entry key-ref="group.nameDetail">
          <list>
            <ref bean="group.nameTrigger"/>
          </list>
        </entry>
      </map>
    </property>
  </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy