Hi Frank,
you can use the <load-on-startup> element in web.xml.
Refer to http://java.sun.com/dtd/  and download web-app_2_3.dtd for details on how to use the above element.
-meera
 
 
-----Original Message-----
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: Initializing servlet on service startup

Hi,
Anybody know how you would have tomcat initialize a servlet (call it's init() method) at startup.  I have it as an nt service and would like the servlet to be initialized at service start and not when the first request comes in.  Any help would be appreciated. Thank you.

Reply via email to