Quartz: How to reload jobs and triggers with org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 10:47:17

You should try to specify the absolute path to your quartz-jobs.xml file to avoid the issue of tomcat not reloading the files in the webapp context even when they are changed.

gubs

We built a small java project for our business needs with quartz.properties and quartz_jobs.xml with the same configuration mentioned, but without Tomcat (Java application project).

Even in the small program, after starting the Java class (scheduler.start()), modifying the quartz-jobs.xml did not trigger the cron based on the expression change.

To solve, I provided the absolute path in quartz.properties, and then the cron expression changes were picked up by the scheduler Factory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!