Why should I use Quartz Scheduler insteade of TimerTask

I'm currently developing a web application that fires multiple jobs in the background, allowing web users to logoff and when they come back see the progress of the jobs they fired.

Searching for ways of implementing Jobs and schedule some of them I found examples with Quartz Scheduler and with simple TImerTasks. The thing is I'm not seeing what does Quartz brings to the table that is so different and makes such a difference when compared to simply using Timer and TimerTask java classes.

What are the benefits from using Quartz?


Quartz adds scheduling, concurrency handling and especially error handling which is quite hard to get right using a simple timerTask.

Also consider capacity configuration (you probably do not want to overload your system with thousands of requests taking all your memory)

See the quartz feature page for some details:

http://quartz-scheduler.org/overview/features

链接地址: http://www.djcxy.com/p/38926.html

上一篇: Spring web应用程序。 一个战争多重应用上下文

下一篇: 为什么我应该使用Quartz Scheduler内置TimerTask