tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Sacco" <atrey...@ngi.it>
Subject How to load a static class on Tomcat startup
Date Fri, 01 Jun 2007 19:32:37 GMT
Hello everybody,
I want to know how I can configure Tomcat to load my Singleton class on his 
startup routine? This class implement a cache that I want to stay in memory 
until Tomcat is shutted down.

I've read about context but it seem to load the class only on a particular
URL 
request..

I want the class to be loaded with Tomcat, without any request is made.

Thanks to all

Andrea

p.s.:I've also posted this message in the dev list and I'm sorry of the
mistake..

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.5/826 - Release Date: 31/05/2007
16.51
 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message