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().

Jake

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
perfect.
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.


Thanks

Steph






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to