File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 33
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: 1632
    
    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
 
Similar Threads
Quartz1.6.4 - how to maintain state after system/application restart
Inconsistent behaviour by Spring Quartz Scheduler.
Restrict quartz scheduler to single instance.
Spring and Quartz - can't update Triggers in database
Spring(version 2.5)+ Quartz - SchedulerFactoryBean - waitForJobsToCompleteOnShutdown