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)
scheduler.addJob((new JobDetail("job1", "group1", NewJobClass.class), true);