You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sonia Galilea Varea <ga...@ebro.cps.unizar.es> on 2001/10/29 17:01:39 UTC
servlets 'auto-starting' with Tomcat
Hi,
When Tomcat starts, until a first doGet or doPost method request is
made, the servlet doesn't execute its init() method.
I want Tomcat executes the init() method of a servlet just when Tomcat
starts, not waiting until the first request to that servlet is made. How
can I do it?
Thanks.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: servlets 'auto-starting' with Tomcat
Posted by Martin Mauri <mm...@profesi.com.ar>.
Sonia,
en web.xml, en el tag:
<load-on-startup>
-2147483646
</load-on-startup>
tenes que poner un numero negativo, como el que puse, entonces el Tomcat en
tiempo de startup decide en que momento cargar e iniciar el servlet.
espero haber ayudado.
Martin
> Hi,
>
> When Tomcat starts, until a first doGet or doPost method request is
> made, the servlet doesn't execute its init() method.
> I want Tomcat executes the init() method of a servlet just when Tomcat
> starts, not waiting until the first request to that servlet is made. How
>
> can I do it?
>
> Thanks.
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>