-
1. Re: Finding all Quartz jobs
kapitanpetko Apr 29, 2010 1:51 PM (in response to prem14261)Yes to all three. You have to use the Quartz APIs directly to achieve it.
-
2. Re: Finding all Quartz jobs
prem14261 Apr 30, 2010 9:08 AM (in response to prem14261)Thanks Nikolay. It means there is no API available in Seam to do all these operations?
- Prem
-
3. Re: Finding all Quartz jobs
kapitanpetko Apr 30, 2010 9:14 AM (in response to prem14261)
Prem Chand wrote on Apr 30, 2010 09:08:
It means there is no API available in Seam to do all these operations?Right. But Seam is just a thin wrapper and some syntactic sugar (@Asynchronous), so it has no way of providing all of this. Just get an instance of the Scheduler and proceed as with standalone Quartz.
-
4. Re: Finding all Quartz jobs
prem14261 Apr 30, 2010 10:39 AM (in response to prem14261)Okay. How can i fetch the Scheduler instance.
I need to get Scheduler instance from SchedulerFactory while creating jobs itself?
Else, can i create jobs with @Asynchronous methods and some how lookup the Scheduler instance later when required?
- Prem
-
5. Re: Finding all Quartz jobs
kapitanpetko Apr 30, 2010 10:50 AM (in response to prem14261)As usual, RTFM:
QuartzDispatcher dispatcher = QuartzDispatcher.instance(); Scheduler scheduler = dispatcher.getScheduler();
If you create jobs with @Asynchronous, they will be available with the Scheduler Seam creates (see above). You can get the trigger/job names from the QuartzTriggerThandle Seam returns.