[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Redeploy project -> Trigger state:ERROR  XML
Forum Index -> Quartz
Author Message
bsener

master

Joined: 11/18/2011 08:29:59
Messages: 63
Offline

Hello,

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.

Thanks!

bsener

master

Joined: 11/18/2011 08:29:59
Messages: 63
Offline

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.

Please let me know if there's any other way...
gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 697
Offline

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.

Hope this will help.

Gyan Awasthi
Terracotta -A Software AG company
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team