Java RAMJobStore Quartz 2.3中没有聚集属性设置器

Java RAMJobStore Quartz 2.3中没有聚集属性设置器,java,quartz-scheduler,scheduler,quartz,Java,Quartz Scheduler,Scheduler,Quartz,我正在Quartz 2.3.0中创建一个作业,我研究过要创建一个作业,并在生产环境中配置它,它必须在jar中的Quartz.properties文件中定义 这是我的quartz.properties文件: # Default Properties file for use by StdSchedulerFactory # to create a Quartz Scheduler Instance, if a different # properties file is not explicitl

我正在Quartz 2.3.0中创建一个
作业
,我研究过要创建一个
作业
,并在生产环境中配置它,它必须在jar中的
Quartz.properties
文件中定义

这是我的
quartz.properties
文件:

# Default Properties file for use by StdSchedulerFactory
# to create a Quartz Scheduler Instance, if a different
# properties file is not explicitly specified.

org.quartz.scheduler.instanceName: DefaultQuartzScheduler
org.quartz.scheduler.rmi.export: false
org.quartz.scheduler.rmi.proxy: false
org.quartz.scheduler.wrapJobExecutionInUserTransaction: false
org.quartz.scheduler.instanceId: AUTO

org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount: 10
org.quartz.threadPool.threadPriority: 5
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true

org.quartz.jobStore.misfireThreshold: 60000

org.quartz.jobStore.class: org.quartz.simpl.RAMJobStore
org.quartz.jobStore.isClustered : true
这些是我的java类
TestPlugin

public class TestPlugin implements PlugIn {
    private static Scheduler scheduler;

    public TestPlugin() {
        super();
    }

    public void destroy() {
    }

    public void init(ActionServlet arg0, ModuleConfig arg1) throws ServletException {
        try {
            JobDetail job = JobBuilder.newJob(TestDemonio.class).withIdentity(new JobKey("jobs", "group1")).build();//.withIdentity("anyJobName", "group1").build();
            Trigger trigger = TriggerBuilder
                    .newTrigger()
                    .withIdentity("anyTriggerName", "group1")
                    .withSchedule(CronScheduleBuilder.cronSchedule("0/59 * * ? * * *"))//0/5 * * * * ?
                    .build();

            Scheduler scheduler = new StdSchedulerFactory().getScheduler();
            scheduler.scheduleJob(job, trigger);
            scheduler.start();
        } catch (SchedulerException e) {
            e.printStackTrace();
        }
    }
}
我的
TestDemon
类:

@DisallowConcurrentExecution
public class TestDemon implements Job {

    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        try {
            System.out.println("PRINT JOB MESSAGE");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
但是我得到了
时间表异常

JobStore
class'
org.quartz.siml.RAMJobStore
'无法使用道具 配置。[请参阅嵌套异常:
java.lang.NoSuchMethodException
:否 属性“
isClustered”的设置器


不可能为RAMJobStore启用群集,因为quartz调度器使用数据库进行群集,如果是RAMJobStore,则作业在内存中创建,不能在进程之间共享

Clustering currently works with the JDBC-Jobstore (JobStoreTX or JobStoreCMT) and the TerracottaJobStore. Features include load-balancing and job fail-over (if the JobDetail’s “request recovery” flag is set to true).