Hi All,
I have a nightly batch process runing with Spring/Quartz. In the production, it needs to run on only one node. The approach we followed is controlled by a build script which invokes modified maven script during build time for the first server where it needs to push the code and rest gets a different version i.e. with the property set to false (or the profile which is meant for the batch process not included as part of their build). This is a good working solution. However, I wanted to know how do you guys approach it and is there a way to it where we can dynamically reassign the batch job to run on different node incase of failure.
It would really help me if you can give your valuable inputs.
Thanks,
Clustering with a persistence store should be what you are looking for
Have a look here:
http://www.quartz-scheduler.org/docs/configuration/ConfigJDBCJobStoreClustering.html
Hope it helps,
Francesco