How-To: Scheduling 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);