Sorry, take a correction -
The argument should be a positive integer. Anything else
means that the servlet engine is free to load the servlet anywere
in the sequence during startup time.
--Amos
> -----Original Message-----
> From: Amos Shapira [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 20, 2000 12:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Load-on-startup in Tomcat
>
>
> Hi,
>
> 1. The number should be a non-negative integer giving the
> servlet engine the order in which you want the servlets to be
> loaded (0 - earliest). I don't know why the example uses the
> maximum negative integer, maybe it's a special case specifically
> for Tomcat.
>
> You can read all about it in the Servlet 2.2 Spec (from
> java.sun.com).
> One of the apendixes lists the DTD of web.xml and
> describes this number.
>
> 2. There is a mailing list dedicated for Tomcat if you have
> implementation-specfic questions. It is hosted at
> jakarta.apache.org.
>
> Cheers,
>
> --Amos Shapira
> WebCollage
>
>
> > -----Original Message-----
> > From: Kartheek Hirode [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, August 19, 2000 10:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Load-on-startup in Tomcat
> >
> >
> > Hello all,
> >
> > Anybody figured out how to load up a servlet at startup-time
> > in Tomcat? (The Tomcat docs have not mentioned it)
> >
> > We've tried putting the following in web.xml for our servlet
> >
> > <load-on-startup>
> > -2147483646
> > </load-on-startup>
> >
> >
> > Don't know what the number means....was in the
> > "org.apache.tomcat.servlets.DefaultServlet" config.
> > (which makes feel very uncomfortable that we copied it to
> > our servlets)
> >
> > To no avail. Any leads are much appreciated.
> > --KH
> >
> > ______________________________________________________________
> > _____________
> > 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
___________________________________________________________________________
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