How can I load file into web app through certain periods?
Posted
by Elena
on Stack Overflow
See other posts from Stack Overflow
or by Elena
Published on 2010-05-17T15:13:55Z
Indexed on
2010/05/18
14:30 UTC
Read the original article
Hit count: 431
Hi all! I have next task: I need to load the same file into my web app several times, for example - twice a day! Suppose in that file I have information, that changes, and I need to load this info into my app to change the statistics for example.
How can I load file several times (twice an hour, or twice a day)? What should I use? Is any algorithm to do that?
I am not allowed to use external libraries like Quartz Scheduler. So I need to do it with Thread and/or Timer. Can anybody give me some example or algorithm how to do it. Where can I create the entry point to my Thread, can I do it in managed bean or I need some sort of filter/listener/servlet. I works with jsf and richFaces. Maybe in this technologies there are some algorithms to solve my problem.
Any ideas?
Thanks very much for help!
© Stack Overflow or respective owner