Configuration file for Quartz

Source: Internet
Author: User

<!-- Timer Schedule    -    <!-- the object to be dispatched is called a task or a job, or a job task, which is a timed task that runs according to certain rules.
Explanation: Call Qtzjob The Execute method in this Pojo class
Registering Com.wfg.QtzJob with Jobbean,jobbean is a job task
-
    <BeanID= "Jobbean"class= "Com.wfg.QtzJob" />    <BeanID= "Jobdetail"class= "Org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">        < Propertyname= "TargetObject"ref= "Jobbean" />        < Propertyname= "Targetmethod"value= "Execute" />        <!--set concurrency to False -        < Propertyname= "Concurrent"value= "false" />    </Bean>    <BeanID= "Trigger"class= "Org.springframework.scheduling.quartz.CronTriggerFactoryBean">

<!--
<bean id= "trigger" class= "Org.springframework.scheduling.quartz.CronTriggerBean" >
Quartz 1.7.3 and spring 4.0.6 can use Crontriggerbean Quartz 2.2.3 and spring 4.2.2 must use Crontriggerfactorybean
A job trigger is a controller that triggers a job task directly, a trigger can trigger only one task, and a task may be triggered by multiple triggers - < property name = "Jobdetail" ref = "Jobdetail" /> <!-- Span style= "color: #008000;" > cron expression --> < property name = "Cronexpression" value = "* 0/5 * * * *?" /> </ bean > < !--General Management Class if you lazy-init= ' false ' then the container starts executing the scheduler
Job scheduler Schedulerfactorybean managing and configuring triggers
- <Bean id= "Startquertz" class= " Org.springframework.scheduling.quartz.SchedulerFactoryBean " lazy-init=" false "> < property name= "triggers">< List > <!--Job Scheduler, List can join other scheduler - <ref Bean= "trigger" /></list> </Property></bean>

Configuration file for Quartz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.