This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes need help for timer 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 » Databases » JDBC
Bookmark "need help for timer task" Watch "need help for timer task" New topic

need help for timer task

sujendra sugur

Joined: Mar 25, 2010
Posts: 12
hi everybody,

i am new to java ranch and i want to update age in my database automatically everyday at particular time.

can anybody tell me how to write timer task for updating age daily.

thank you

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41087
Which part are you having problems - using a timer task, using JDBC, the SQL code for this, or something else? What do you have so far, and where are you stuck making progress?

Ping & DNS - my free Android networking tools app
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
Hi sujendra,

I have never heard of an age column in database, this is the first time! It is either a poor database design or I am missing something.
Anyway I would recommend you to consider your design. Just have the date of birth column instead of age. Or should you please inform about your age column and purpose, since I am curious about it.


subject: need help for timer task
Similar Threads
Timer & TimerTask - Name of Timer Object
Need a program in timer schedule..
What is the Linux command to find the created timer daemon
"Could not create task of type: echo"
Timer Question