Quartz scheduler is no longer useful with Spring from version 3.0 onwards?

Spring's internal planning capability, like Spring 3, includes support for expressions like cron, and this is very similar to the Quartz cron trigger.

Is there any reason why I want to integrate quartz with Spring?

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/scheduling.html#scheduling-task-scheduler

+7
source share
2 answers

Yes, you will need quarz, for example:

  • if you need to add new tasks at runtime or
  • if you need to change the interval (cron expression) at runtime,
  • If you need mission statistics,
  • ...

in general: if you need more than just starting a method at a fixed time.

+5
source

Afaik, Spring scheduling does not support persistent job repositories; it recovers misfires due to downtime or cluster schedulers. Quartz has had all this for many years.

+2
source

All Articles