tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan O'Hara <oh...@genome.chop.edu>
Subject Re: Initializing Parameter
Date Mon, 31 Jul 2006 19:36:43 GMT
One more question:  What is the best method for retrieving the  
values?  Thanks again.

-Ryan

On Jul 31, 2006, at 2:47 PM, David Smith wrote:

> ServletContextListener is a new feature of servlet spec 2.4 (tomcat  
> 5.0.x, 5.5.x).  The essential parts are:
>
> 1. write a class implementing the  
> javax.servlet.ServletContextListener interface.  The interface  
> itself requires two methods -- contextInitialized() [see below] and  
> contextDestroyed().
> 2. Add the listener to your web.xml in a <listener> attribute.
> 3. Deploy your app and the contextInitialized() method below will  
> be executed once each time the webapp is started.
>
> The servlet spec itself and the servlet api javadocs have complete  
> information on implementing this.
>
> --David

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