tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Crowther" <Peter.Crowt...@melandra.com>
Subject RE: newby user: processing when the server launches
Date Fri, 12 Oct 2007 12:46:49 GMT
> From: HODAC, Olivier [mailto:OLIVIER.HODAC@airbus.com] 
> In my application, I have to perform stuff when the server 
> starts. Where do I have to put this code?

Define and use a servlet context listener.  This will run as your webapp
starts up.

http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html

		- Peter

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