• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wells: Spring scheduling

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With Spring scheduling, do you see any real use case for Quartz? If so, what would your recommendations be for when to use either?
 
author
Posts: 422
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Quartz? Yes, absolutely. But directly using Quartz? Not so sure. Consider this example of how to use scheduling in Spring 3:

First, in the Spring configuration (Using the new "task" configuration namespace)...


Then on the method you want scheduled...



To invoke doSomething() at midnight every night. Or if you want it to kick off every 5 minutes...



Couldn't be simpler.
 
Morten Franorge
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Craig Walls wrote:
Quartz? Yes, absolutely. But directly using Quartz? Not so sure.



I absolutely agree that Spring's new scheduling capabilities are easy to use. But, what do you mean by "directly using Quartz"? The new scheduling capabilities in Spring doesn't have anything to do with Quartz? My question was whether you see any good usecases where Quartz is better than the new scheduling capabilities, as I don't
 
Craig Walls
author
Posts: 422
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah...right...I was mistaken in thinking that the new stuff uses Quartz under the covers (I should never answer these things before I've had my morning caffeine). You're right...Quartz is not involved.

So...no...I can't see any value in Quartz given Spring 3's new scheduling stuff. That's not to say that there isn't any value...I just don't see it. I welcome someone to tell me otherwise.
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic