wood burning stoves 2.0*
The moose likes Spring and the fly likes Quartz scheduler not deleting the job from all servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Quartz scheduler not deleting the job from all servers" Watch "Quartz scheduler not deleting the job from all servers" New topic
Author

Quartz scheduler not deleting the job from all servers

Harish V Gupta
Ranch Hand

Joined: Dec 17, 2011
Posts: 37
Hi all, Our application is based on spring and we are using clustered environment (2 servers) for our application with jndi as datasource (org.springframework.jndi.JndiObjectFactoryBean). For scheduling jobs, quartz is being used. But deleting the job is not deleting the job from both the servers. The job remains active and scheduled on the other server. I googled and found out the we could use isClustered property in quartzProperties for the purpose but it's mentioned that it can be used only for JDBC. Could anyone please tell me how to sort out the problem? I tried using following in applicationContext but it isn't helping :
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Correct you can use the clustered mode with with the JDBC store. You need to create the quartz tables. The DDL for these tables as well as configuration to get it working (there is not to much to it) is available in the quartz distribution zip. I have used this a lot and it works great.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Quartz scheduler not deleting the job from all servers