hi!
start a separate thread in one of your servlet's init(...). let this thread
check the value and update if necessary (look at java.util.Timer as well).
-mw
----- Original Message -----
From: "Edward" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 8:23 AM
Subject: How to dynamic and automatically refresh Servlet Context?
> I put data into Servlet Context,like follows:
>
> public void init() throws ServletException
> {
> context=getServletContext();
> if(context.getAttribute("table_info_tbl")==null)
> {
> ...
> context.setAttribute("table_info_tbl",data);
> }
> }
>
> I use Tomcat to deploy Servlet.
> data is from a Database,it may change according environment.I want to
dynamic and automatically refresh Servlet Context about 1 hour without
restarting Tomcat.I want to know how to do it?
> Thanks in advance!
> Edward
>
>
___________________________________________________________________________
> 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