We are using Cron4j java scheduler for scheduling jobs which execute every night. Now, when this same web application is deployed(Tomcat) on cluster(2 nodes) at the client's site the jobs run twice. Is there any way to avoid this problem?
I believe the only way of doing this would be to use some external shared state, like in a database for example, to provide some locking.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With