开发者

How to use quartz scheduler in java?

I need to schedule a task that will run everyday on 7:00 p.m. in java using quartz. Can someone point out a开发者_如何学Go good tutorial on how to use quartz scheduler in java?


Take a look at quartz API documentation.

Edit: Working URL for quartz API Documentation


To run everyday at 7pm, configure in your quartz.xml. Here "name" is whatever you want it to be, "job-name" should be same as the job-name you mentioned in between job tags.

<job>
  <name>Scheduletracer</name>
  <job-class>//here goes package name.program name</job-class>

</job>

    <trigger>
                        <cron>
                                <name>server1</name>
                                <job-name>ScheduleTracer</job-name>
                               <cron-expression>0 0 19 * * ?</cron-expression>
                        </cron>
                </trigger>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜