Easy, the Servlet 2.2 spec defines a "load-on-startup" attribute which you
set in the web.xml file per servlet. Look in the DTD in the spec for
details.
I think this is part of the "web application" concept which was introduced
only
in 2.2, so don't look for it in anything earlier.
Tomcat 3.1 supports this, I use it to run a stand-alone test through
JBuilder 3.5 - the init() method of one of the servlets creates the test
thread.
Inside a <servlet> stanza, add:
<load-on-startup>1</load-on-startup>
The "1" (One), gives the place of the servlet in the load sequence,
the lower the number the earlier the servlet's "init" method will
be called in the sequence.
Hope this helps,
--Amos Shapira
WebCollage
> -----Original Message-----
> From: Dave Ford [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 26, 2000 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet Spec and Global Startup Servlets
>
>
> My question concerns a "global start-up" servlet. By this I
> mean a servlet
> who's init method runs before before any other servlets init
> method runs.
>
> Q1: Does the servlet specification address this issue?
> Q2: If not, do individual vendors address the issue?
> Q3: Specifically, for tomcat, how do you do it?
> Q4: Specifically, for Orion, how do you do it?
>
> Thanks,
>
> Dave Ford
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html