tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Servlet init method invocation
Date Wed, 11 Apr 2007 11:05:37 GMT
Nencho Lupanov wrote:

> Hi All,
>
> I am trying to understand, when is the Servlet init() method invoked in
> tomcat.
> I expected it to be executed after succesfull deployment but it seems 
> that
> it is
> executed the first time(only)  when request arives.
> So, i need to receive a request in order this method to be executed?
> Is that configurable?Thanks.
>
> Nencho
>
By default, probably.  There is also a <load-on-startup> element in 
web.xml defined on a per servlet basis to force load the servlet when 
tomcat starts.

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