I have a servlet in which I would like to be called once a day at a certain time? How do I accomplish that?
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
1
posted
0
What is supposed to call it?
Anthony Smith
Ranch Hand
Joined: Sep 10, 2001
Posts: 285
posted
0
Well I don't know. My last resort was to create a java program that wouls spawn a thread and sleep for 24 hours or something. Is it possible to do something that fires the servlet off on startup and then have it be called every 24 hours or whatever time. I know that i could arrange for a servlet to start on startup
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Why do you want to use a servlet for that ?? The servlet can be used to start a timer bean e.g. (There is one provided by the J2SE spec if i remember correct) but not to be the timer itself.
Anthony Smith
Ranch Hand
Joined: Sep 10, 2001
Posts: 285
posted
0
I want the sql to delete some records in my db each morning.