my dog learned polymorphism*
The moose likes Spring and the fly likes spring 3 with quartz scheduler - annotation driven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring 3 with quartz scheduler - annotation driven" Watch "spring 3 with quartz scheduler - annotation driven" New topic
Author

spring 3 with quartz scheduler - annotation driven

Maciej Opala
Ranch Hand

Joined: Jul 18, 2011
Posts: 38
Hi,

I need to integrate spring 3.0 with quartz (because the application works in clustered environment) but only using annotations - there's no xml configuration. The problem is that that I don't know how to start.

There're five cron tasks that need to be scheduled. I guess that what I need to do is to declare a sort of the component (that would be scheduler) with all tasks autowired to this component - the problem is that I don't know how to indicate an init method for the component (with annotations). There's also SchedulerFactoryBean but I don't know how to make use of it.

Any help would be greatly appreciated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: spring 3 with quartz scheduler - annotation driven