tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: How to persist web-app properties across restarts ?
Date Fri, 07 Nov 2003 19:17:16 GMT

Put a singleton helper class in a parent classloader such as in shared or 
common Tomcat classloaders and manipulate collections there.  They will 
exist as long as the JVM (and Tomcat) is running.

Otherwise, you should also be able to use stuff like System.setProperty().


At 01:51 PM 11/7/2003 -0500, you wrote:

>I am looking for the most standard and lightweight way to persist some 
>properties about a web application across restarts of the web
>application or the entire server.
>Something like the ServletContext.setAttribute() method, but with the 
>persistence ability that you get from Http sessions would be
>I am using this for a management servlet that can indicate to load 
>balancing software that traffic needs to be directed away from a
>given tomcat instance when it's in a certain state, and the management 
>servlet needs to remember what state it was last in when it's
>application is restarted. Because it's used in monitoring I don't want any 
>dependancies on external data stores other than simple
>file system.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message