I have many jobs with Quartz Schedule and I execute in my java app. (one event on my webapp active a job to run)
My webapp runs in 4 machines with two instances each, so:
how can i make sure that the same job does not run 2 times on 2 different machines?
and how i make sure tha there are no problems with persistence in the database?
You can configure Quartz clustering with JDBC-JobStore. Basically all your instances should share the same database, and Quartz will ensure that only one instance will run a specific job. More info can be found here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.