Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Db update at same instance using Quartz scheduler

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Run away! Run away! Here, take this tiny ad with you:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!