I need to schedule a task that will run everyday on 7:00 p.m. in java using quartz. Can someone point out a good tutorial on how to use quartz scheduler in java?
Asked
Active
Viewed 1.1k times
0
-
6Did googling for "quartz scheduler tutorial" not return anything useful? – skaffman Jul 11 '11 at 12:27
-
3www.google.com is a great resource – pap Jul 11 '11 at 13:52
-
Just use the [manual](http://quartz-scheduler.org/documentation/quartz-2.2.x/quick-start) it is very good. – eckes Feb 18 '15 at 01:04
2 Answers
7
Take a look at quartz API documentation.
Edit: Working URL for quartz API Documentation

Shakeer Mirza
- 5,054
- 2
- 18
- 41

Harry Joy
- 58,650
- 30
- 162
- 207
2
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>

Josh Darnell
- 11,304
- 9
- 38
- 66

naveenTekkem
- 61
- 1
- 9