---- Original Message -----
From: "Peters, Jim" <[EMAIL PROTECTED]>
> uses the standard servlet runner from Sun. How to I specify which servlet
I
> want to run when I bring up VCEE, Tomcat, or JSDK 2.2 ?
Which servlets should be started (loaded) by the servlet container and in
which order can be specified in web.xml files.
For details look up the DTD as part of the 2.2 specs. Some sections from
that DTD are reproduced below.
<!--
The servlet element contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup element is
present, then the JSP should be precompiled and loaded.
-->
<!ELEMENT servlet (icon?, servlet-name, display-name?, description?,
(servlet-class|jsp-file), init-param*, load-on-startup?,
security-role-ref*)>
<!--
The load-on-startup element indicates that this servlet should be
loaded on the startup of the web application. The optional contents of
these element must be a positive integer indicating the order in which
the servlet should be loaded. Lower integers are loaded before higher
integers. If no value is specified, or if the value specified is not a
positive integer, the container is free to load it at any time in the
startup sequence.
-->
<!ELEMENT load-on-startup (#PCDATA)>
> I want to go a step
> further and free up database connections on that servlets destroy()
method.
>
As far as destroy method is concerned, this method is called as per the
servlet lifecycle detailed in the specs. As far as my knowledge goes you can
free database connection in this method.
Regds,
Gokul
___________________________________________________________________________
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