File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Db update at same instance using Quartz scheduler Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Db update at same instance using Quartz scheduler" Watch "Db update at same instance using Quartz scheduler" New topic
Author

Db update at same instance using Quartz scheduler

Komal Renu
Ranch Hand

Joined: Jul 21, 2011
Posts: 50
Hi Everyone,

I am using Quartz scheduler for scheduling some delete activity from the DB.
In the quartz configuration i am using Database Job Store for tracking.

Now, here's the scenario and the problem
Scenario:
1. created a servlet to schedule a delete job.
2. set the time of the job execution at a fixed time of the day
3. deployed the application in two tomcat instances (point to the same DB)
4. Invoked the servlet on both the URLs.

Problem:
1. Quartz tables are updated successfully
2. the delete operation occurs only on one id and not on both
3. but in quartz table it shows both jobs trigger count as 1.

Can anyone help me find a way to make sure that both DB deletions occur successfully.

Thanks,
Komal
 
 
subject: Db update at same instance using Quartz scheduler
 
Threads others viewed
Quartz scheduler or Timer task?
Call action class from timertask's run method
Running scheduled 'jobs' in OAS
Quartz Sheduler not executing
Issue in Quartz rescheduling
IntelliJ Java IDE