Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Database scheduling

 
Faisal Ahmad
Ranch Hand
Posts: 355
Chrome Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!

I am using Apache Derby database with Tomcat and am trying to implement the following ideas:
- everyday at 9 pm for e.g. the database must create a new record/row in a table
- everyday at 9 pm for e.g. the database must modify an existing record/row's information

My web application will be up always once started.

Right now I'm trying to implement the ideas using some Java+JDBC class with timer task etc. I've a question: will such program runs in background?
Could you please guide me and tell if I'm going in right direction? Further, I would appreciate if you could give me any other tips that could help in implementing my ideas.
Many thanks in advance!
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it will run in the background and yes it is a good approach. In fact we use it here at the Ranch.
 
Faisal Ahmad
Ranch Hand
Posts: 355
Chrome Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you! I successfully implemented my ideas.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!