-
Feb 9th, 2007, 06:53 PM
#1
Scheduling two Quartz jobs
Hi,
I would like to schedule two jobs in my spring based application. The scheduling should can be paused and started again. The Quartz Scheduler class has the corresponding methods: standby() and start(). I have tried to declare two different SchedulerFactoryBeans with singleton=”false”, but if I try to get a reference to either of them with Scheduler scheduler1 = applicationContext(“scheduler1”) I get a reference to scheduler2. Can I have two different SchedulerFactoryBeans in an application? And if not, how can I schedule two different jobs?
Thanks,
Igor
-
Feb 10th, 2007, 09:16 AM
#2
I don't understand why you can't just schedule two jobs? Why would you need two schedulers? If you want to do in the XML just create two triggers and two jobs. If you are using Quartz you can just do the same programmatically.
http://www.springframework.org/docs/...ng-quartz-cron
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules