Quartz Scheduler Example Programs and Sample Code : Quartz Code Snippets : How-To: Update an Existing Job
How-To: Update an Existing Job
Update an Existing Job
// Add the new job to the scheduler, instructing it to "replace"
// the existing job with the given name and group (if any)
JobDetail job1 = newJob(MyJobClass.class)
.withIdentity("job1", "group1")
.build();
// store, and set overwrite flag to 'true'
scheduler.addJob(job1, true);
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback