When I schedule reoccuring jobs, it works. But after I stop and restart scheduler application, the remaining jobs are not trigger any more.
Below is the properties and how I create Quartz scheduler instance.
I am using Java 1.8.
How I can solve this problem? Please help.
Properties props = new Properties();
String jndiname = "unmanageddatasource:" + aname;
props.setProperty("org.quartz.dataSource.MYDS.jndiURL", jndiname );
logger.debug("Quartz URL: " + jndiname);
props.setProperty("org.quartz.scheduler.instanceName", currentTenantId);
props.setProperty("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool");
props.setProperty("org.quartz.threadPool.threadCount", "10");
props.setProperty("org.quartz.scheduler.instanceId", "AUTO");
props.setProperty("org.quartz.jobStore.misfireThreshold", "60000");
props.setProperty("org.quartz.threadPool.threadPriority", "5");
props.setProperty("org.quartz.jobStore.class", "org.quartz.impl.jdbcjobstore.JobStoreTX");
props.setProperty("org.quartz.jobStore.driverDelegateClass", "org.quartz.impl.jdbcjobstore.StdJDBCDelegate");
props.setProperty("org.quartz.jobStore.tablePrefix", "QRTZ_");
props.setProperty("org.quartz.jobStore.dataSource", "MYDS");
SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory(props);
logger.debug("Scheduler Factory: " + schedFact.toString());
scheduler = schedFact.getScheduler();