First you need an infinite loop:
while ( true )
{
doYorStuff();
// wait
try { Thread.sleep(1800000); }
catch ( InterruptedException e ) { }
}
Second, use URLConnection to retreive your data. Planty of examples out there
DD
----------
From: MA[SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, January 04, 2000 06:23 PM
To: [EMAIL PROTECTED]
Subject: Urgent help please
Hello Guys:
I'm trying to implement servlet invocation after
certain time period automatically.
The servlet will connect to a database, retrieve the
data and then download it into a flat file. I want
this process to be repeated after every 30 minutes.
Any brain dump or pointers about how to implement this
is appreciated.
Thanks,
Mub
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html