0

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?

Harry Joy
  • 58,650
  • 30
  • 162
  • 207

2 Answers2

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