Artur Rataj ha scritto:
Hello!

I would like, just after tomcat starts, to create a new thread. Where
can I put the code that starts it? I do not want to wait with starting
the thread until some servlet is needed.

can you use somethings like:
<servlet>
  <servlet-name>ServerInit</servlet-name>
  <servlet-class>argentaroggia.servizi.ServerInit</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>

in you web.xml

--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to