This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Database scheduling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Database scheduling" Watch "Database scheduling" New topic
Author

Database scheduling

Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 347

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Yes it will run in the background and yes it is a good approach. In fact we use it here at the Ranch.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 347

Thank you! I successfully implemented my ideas.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database scheduling
 
Similar Threads
SCJD Questions
whole database locking in B&S / Denny's DVDs
Autocomplete search with Struts and Hibernate
while (rs.next()) not stopping at EOF.
java I/O