У меня два приложения .war, развернутые на одном и том же коте, и я пытаюсь запустить запланированные задания для каждого планировщика uzing Quartz с конфигурацией xml. Проблема заключается в том, что задание работает для каждого из них, если планировщик другого не настроен в xml config, но не работает, если config для них обоих
Свойства:
org.quartz.scheduler.instanceName = Reversal_Scheduler
org.quartz.threadPool.threadCount=3
org.quartz.plugin.jobInitializer.class=org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin
org.quartz.plugin.jobInitializer.fileNames = quartz_data.xml
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
quartz_data. xml содержимое файла:
<?xml version="1.0" encoding="UTF-8"?>
<job-scheduling-data xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData
http://www.quartz-scheduler.org/xml/job_scheduling_data_1_8.xsd"
version="1.8">
<schedule>
<job>
<name>Job1</name>
<group>JobsGroup</group>
<job-class>my.job1.Executor</job-class>
</job>
<trigger>
<cron>
<name>Job1Trigger</name>
<job-name>Job1</job-name>
<job-group>JobsGroup</job-group>
<cron-expression>0/5 * * * * ?</cron-expression>
</cron>
</trigger>
</schedule>
<schedule>
<job>
<name>Job2</name>
<group>JobsGroup</group>
<job-class>my.job2.Executor</job-class>
</job>
<trigger>
<cron>
<name>Job2Trigger</name>
<job-name>Job2</job-name>
<job-group>JobsGroup</job-group>
<cron-expression>0/10 * * * * ?</cron-expression>
</cron>
</trigger>
</schedule>
</job-scheduling-data>
Кварцевый журнал:
2020-04-21 17:18:22.872 INFO localhost-startStop-1 org.quartz.ee.servlet.QuartzInitializerListener Quartz Initializer Servlet loaded, initializing Scheduler...
2020-04-21 17:18:22.916 INFO localhost-startStop-1 org.quartz.impl.StdSchedulerFactory Using default implementation for ThreadExecutor
2020-04-21 17:18:22.934 INFO localhost-startStop-1 org.quartz.core.SchedulerSignalerImpl Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2020-04-21 17:18:22.934 INFO localhost-startStop-1 org.quartz.core.QuartzScheduler Quartz Scheduler v.2.3.0 created.
2020-04-21 17:18:22.935 INFO localhost-startStop-1 org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin Registering Quartz Job Initialization Plug-in.
2020-04-21 17:18:22.936 INFO localhost-startStop-1 org.quartz.simpl.RAMJobStore RAMJobStore initialized.
2020-04-21 17:18:22.937 INFO localhost-startStop-1 org.quartz.core.QuartzScheduler Scheduler meta-data: Quartz Scheduler (v2.3.0) 'Reversal_Scheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2020-04-21 17:18:22.937 INFO localhost-startStop-1 org.quartz.impl.StdSchedulerFactory Quartz scheduler 'Reversal_Scheduler' initialized from default resource file in Quartz package: 'quartz.properties'
2020-04-21 17:18:22.938 INFO localhost-startStop-1 org.quartz.impl.StdSchedulerFactory Quartz scheduler version: 2.3.0
2020-04-21 17:18:22.943 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Utilizing schema packaged in local quartz distribution jar.
2020-04-21 17:18:22.954 INFO localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Parsing XML file: quartz_data.xml with systemId: quartz_data.xml
2020-04-21 17:18:23.066 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Found 0 delete job group commands.
2020-04-21 17:18:23.067 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Found 0 delete trigger group commands.
2020-04-21 17:18:23.068 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Found 0 delete job commands.
2020-04-21 17:18:23.069 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Found 0 delete trigger commands.
2020-04-21 17:18:23.070 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Directive 'overwrite-existing-data' not specified, defaulting to true
2020-04-21 17:18:23.071 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Directive 'ignore-duplicates' not specified, defaulting to false
2020-04-21 17:18:23.073 DEBUG localhost-startStop-1 org.quartz.xml.XMLSchedulingDataProcessor Found 2 job definitions.
, но не выполнено
какие-либо решения?