Wednesday February 18, 2004
Spring gets some Scheduling From the springframework-devel mailing list:
I've revived my Quartz support classes for Spring today. They emerged from a job scheduling consulting
project I did in autumn 2003. We have concrete needs for this now at werk3AT, thus the revival: It's about
quite simple cron-style scheduling of application jobs.
I've revived my Quartz support classes for Spring today. They emerged from a job scheduling consulting
project I did in autumn 2003. We have concrete needs for this now at werk3AT, thus the revival: It's about
quite simple cron-style scheduling of application jobs.
The basic idea is to set up a Quartz Scheduler via a SchedulerFactoryBean, also allowing to register
scheduled jobs there via a <list> of <refs> to ScheduledJobDefinition beans. A ScheduledJobDefinition
is just a simple combination of a Quartz JobDetail and a Quartz Trigger.
ScheduledJobDefinition bean implementations include:
- DefaultScheduledJobDefinition, allowing to use any implementation of Quartz' Job interface with a
declaratively configured job data map and cron trigger
- MethodInvokingJobDefinition, allowing to specify a method of a Spring-managed bean to execute as job
(completely declarative, without the need for implementing a custom Job object), with a cron trigger.
Both job definition beans can link in a separate Quartz Trigger instance instead of a cron expression;
DefaultScheduledJobDefinition can also link in a separate Quartz JobDetail instance instead of a job class.
Very nice!
Posted in Java
at Feb 18 2004, 11:28:25 PM MST
Add a Comment
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial