Quartz Scheduler:
Quartz is a job scheduling system that can be integrated with, or used alongside virtually any other software system.
Quartz is quite flexible, and contains multiple usage paradigms that can be used separately or together.
Quartz is very light-weight, and requires very little setup/configuration.
Quartz is fault-tolerant, and can persist (‘remember’) your scheduled jobs between system restarts.
Since JDK 1.3, Java has built-in timer capabilities,
1.java.util.Timer
2.java.util.TimerTask classes
Why we use Quartz rather than these standard features?
- Timers have no persistence mechanism.
- Timers have inflexible scheduling
- Timers don’t utilize a thread-pool only one thread on timer
- Timers have no real management schemes
jar files needed for Quartz are:
quartz-all-2.1.7.jar slfj-log4j12-1.6.1.jar sl4j-api-1.6.1.jar log4j-1.2.14.jar