This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
If you're going to implement a timer, you're better off creating a plain old Java object with your timer code and instanciate it with a contextListener. There are timer libraries out there you can use for this. Google "Quartz" or "java.util.Timer" for more information on them.
Another (easier) approach is to use the operating system's timing capability to call a servlet. I was able to do this with one line of code on a Linux box using cron and wget. Windows has scheduling capabilities as well. If you can't find an HTTP client, it is easy to write a small one in Java using java.net.URLConnection or the libraries at http://jakarta.apache.org/commons/httpclient. [ November 16, 2006: Message edited by: Ben Souther ]
Thank a lot Ben, i download the HttpClient and tried running it.
getting this error, all jars are in place.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:217) at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88) at HttpClientTutorial.main(HttpClientTutorial.java:16)