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
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward