Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes sceduling a task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "sceduling a task" Watch "sceduling a task" New topic
Author

sceduling a task

Tharaka Peiris
Greenhorn

Joined: Jan 05, 2011
Posts: 11

I want to schedule a back up of a sql table for a given start time... I have written the back up program and now i want to run it on the time user provided... lets say 4'o clock in the morning... How can I do that?
Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 117
You can use cron job on linux or Scheduled tasks on windows to run your program.
More cleaner approach would beto use java.util.Timer class.


Good, Better, Best, Don't take rest until, Good becomes Better, and Better becomes Best.
Sidd : (SCJP 6 [90%] )
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: sceduling a task
 
Similar Threads
Hibernate Recipes - Review comments?
News of Saturday's banking glitch?
Wierd networking problems
Time Machine
Struts Action Classes - Presentation or Business Logic Layer?