Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Quartz scheduler not deleting the job from all servers

 
Harish V Gupta
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic