keepworking
asked on
schedule a job
in a web application, I need call a method in a certain period, for example, I need run a method every 10 mins, how to do it?
thanks
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
can I code a method to run a shceduled job, instead of your reply above?
thanks
thanks
ASKER
CRON???
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
for a simple implementation you could use a Timer
http://javaalmanac.com/egs/java.util/ScheduleRepeat.html
Have a servlet start the timer on startup
http://javaalmanac.com/egs/java.util/ScheduleRepeat.html
Have a servlet start the timer on startup
ASKER
ok, I will try to use a timer and reply soon
thanks
thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.javakb.com/Uwe/Forum.aspx/java-programmer/4638/Java-Timer