Yes to all three. You have to use the Quartz APIs directly to achieve it.
Thanks Nikolay. It means there is no API available in Seam to do all these operations?
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.
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?
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.