tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
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.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message