In web.xml, add a <load-on-startup> element to your <servlet> element.  You
set it to a number: servlets will be started in order according to these
numbers.

                                                            -- Bill K.


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 5:11 AM
> To: [EMAIL PROTECTED]
> Subject: Modify Servlet Context on Tomcat Startup
> 
> 
> I currently have a servlet that sets up a number of attributes in the
> servlet context. Does anybody know how I can get this servlet to
> automatically run when Tomcat starts.
> 
>  Thanks in andvance
> 
>  Jeff Sulman
> 

Reply via email to