Trying to migrate some old implementation to my project. How can I configure the old implementation in applicationContext.xml? From the old code base I have got following:
SchedulerFactory class
@Singleton
public class SchedulerFactoryOld {
private Scheduler scheduler=null;
private static SchedulerFactory factory = new StdSchedulerFactory();
@Produces
public Scheduler getScheduler() {
synchronized (factory) {
if(scheduler != null)
return scheduler;
try {
scheduler = factory.getScheduler();
} catch (SchedulerException e) {
}
return scheduler;
}
}
}
quartz.properties
org.quartz.scheduler.instanceName = QuartzScheduler
org.quartz.scheduler.instanceId = AUTO
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 8
org.quartz.threadPool.threadPriority = 8
org.quartz.jobStore.misfireThreshold = 60000
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore