"Kwan, Kenneth Y" wrote:
> But how can I tell the Servlet engine that this is the initialization
> servlet and please load that during initialization ?? Further, if I have
> several web applications, how can I tell the engine that for this
> application load init servlet A, and for application B please load init
> servlet B, etc.
>
The details of how to do this depend on which web server + servlet engine
combination you are using. For example, with Apache JServ, there is a
"servlets.startup" parameter in the zone properties file to define the
servlets that should be loaded at startup time for this zone (which is pretty
much equivalent to a servlet context).
Some environments don't support this setting (such as the servlet engine in
JSWDK 1.0). I've worked around this by modifying my "startserver" command to
include an execution of the "lynx" character mode browser, asking for the URL
of my startup servlet. This has the effect of loading the initialization
servlet for me as soon as the servlet engine has been started. If you don't
have lynx available, the Java Language Tutorial
(http://java.sun.com/docs/books/tutorial) has a simple example program that
uses a URLConnection to read from a URL, which accomplishes exactly the same
thing.
Craig McClanahan
___________________________________________________________________________
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