use of org.quartz.impl.StdSchedulerFactory in project oxCore by GluuFederation.
the class QuartzSchedulerManager method initInternal.
protected void initInternal() {
try {
StdSchedulerFactory factory = new StdSchedulerFactory();
factory.initialize(QUARTZ_PROPERTY_FILE_NAME);
scheduler = factory.getScheduler();
// Register job listener to bound request context to every job
// execution
scheduler.getListenerManager().addJobListener(jobListener, EverythingMatcher.allJobs());
// Replace default job factory
scheduler.setJobFactory(jobFactory);
} catch (SchedulerException ex) {
throw new IllegalStateException("Failed to initialize Quartz scheduler manager", ex);
}
log.info("Quartz scheduler manager initialized");
}
Aggregations