views:

866

answers:

1

Is there a way to delete a scheduled trigger with a specific job? It seems that only way to delete a trigger is to delete the whole job and then re-register the job and trigger.

I've a job which can potentially have 100+ triggers and I really don't want to delete the job and re-register all the triggers when I just have to delete 1 trigger.

Also, is there a way to stop the scheduler from executing the job as soon as the trigger is configured?

Thanks

+2  A: 

try scheduler.unscheduleJob

this accepts the trigger and group names as a parameters and will only remove the trigger specified, not the job.

QuartzScheduler

Scheduler

Forum

pstanton
I tried doing getTriggersOfJob before and after doing unscheduleJob. It doesn't remove the trigger. Once I remove do I need to do something else to make the scheduler aware?
try the forum (link in answer). james is very helpful.
pstanton