Spring Quartz Vs. JDK Timer
We ended up using the JDK timer, since
- it was easy to use
- calling an EJB
- instantiated once (quartz instantiates the job everytime)
One nice thing about the JDK timer, even if task is scheduled at a certain time, it would not execute if an existing task is running. Also its thread-safe, since only one task is executing at a time.
More information at -
Task Scheduling – Spring Framework Documentation