On Mon, 17 Sep 2001, Dave Ford wrote:

> Suppose I want to have two instances of the same web-app running at
> 2 different URLs:
>
> 1. myServer/wa1
> 2. myServer/wa2
>
> Now suppose I want to have different startup parameters for each
> web-app. Is there a standard way to do this?

Do you mean web-app or servlet?

web-apps are pretty much totally distinct, they have their own
contexts and web.xml files.  Startup parameters are defined in the
web.xml file.  So just specify the appropriate startup parameters in
the web.xml files, and each web-app will have its own.

It's also possible to define multiple instances of the same servlet in
one web-app, and have each instance have its own startup parameters.
In the web.xml file, the init-param tag goes inside the servlet tag
(i.e. the startup parameters are particular to a servlet definition).

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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

Reply via email to