Felipe Leão
Felipe Leão

Reputation: 925

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?

Upvotes: 0

Views: 1133

Answers (1)

light_303
light_303

Reputation: 2111

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

Upvotes: 1

Related Questions