I'm using quartz 2.1.1, Geronimo 2.2 and Java 6. When I make code changes and want to redeploy my project, how can I make it so either quartz will stop executing jobs or my project will wait for jobs to finish executing before it undeploys?
I've got this working on Geronimo using "wait-on-shutdown" property. But I can't get it to work for the project itself.
I have 3 projects in an ear project. 2 of them use quartz, so those 2 are not a problem. 3rd one is an EJB project, so I'm going to try to use @PreDestroy and see if I can call shutdown(true) on all the schedulers.
You can put scheduler on standby mode at the time of deployment. so that no job fire at the time of deployment/undeployment.
you can also set "requestRecovery" to true so if job/trigger fails to fire when deployment/undeployment is going on. job will run again once application starts.