There are more than one way to do it. You can write a thread with an endless
loop in which "Receive" is called every 5 minutes. The thread can be started
and killed whenever any event happens, for example, when the servlet is
initiated and stopped.

Good luck.

-Song

Duke Martin wrote:

> hi,
>
> I developed a servlet that sends and receives email using JavaMail.  My
> question is how can I set up my servlet to automatically call my "Receive"
> method every 5 minutes?  Or can I just reload the servlet every 5 minutes?
> Is this possible?  If so, what is the best way.
>
> Duke
>
> ___________________________________________________________________________
> 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

--
Hongjun Song, Ph.D.
Sr. Researcher
Advanced Information Department
Information Technology, Electronic Commerce Division
Federal Express Corporation
Phone: (901) 263-6417
Fax:   (901) 263-8287

___________________________________________________________________________
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

Reply via email to