tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@apache.org>
Subject Re: Loading Properties File at start-up or in Application Scope
Date Mon, 31 Oct 2005 00:13:37 GMT
From: "Rahul Joshi" <rj365@yahoo.com>
> I can load the properties file in the class file but I
> want to load it as the Tomcat starts so that the
> properties file is not loaded again and again.
> Something like storing this in the application scope.
> How can I do this?

Use a ServletContextListener:
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletContextListener.html

-- 
Wendy



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


Mime
View raw message