Quartz Scheduler Example Programs and Sample Code : Quartz Code Snippets : How-To: Schedule an Already Stored Job
How-To: Schedule an Already Stored Job
Scheduling an Already Stored Job
// Define a Trigger that will fire "now" and associate it with the existing job
Trigger trigger = newTrigger()
.withIdentity("trigger1", "group1")
.startNow()
.forJob(jobKey("job1", "group1"))
.build();
// Schedule the trigger
sched.scheduleJob(trigger);
Copyright © 2010-2016 Software AG, Darmstadt, Germany.

Product Logo |   Feedback