Adding a Single Web Application
The following XML fragment adds a single web application to the server.
<Call name="addWebApplication"> <Arg>/context</Arg> <Arg>./webapps/webappdir</Arg> <Set name="extractWAR">false</Set> <Set name="defaultsDescriptor">etc/webdefault.xml</Set> <Set name="virtualHosts"> <Array type="java.lang.String"> <Item/> <Item>127.0.0.1</Item> <Item>localhost</Item> <Item>www.lobster.de</Item> </Array> </Set></Call>The parameters have the following meaning.
|
Parameter |
Description |
|
Context |
The context to use for this web application. If null is specified, the base context is used. |
|
Webappdir |
The directory where the web app files are located. |
|
ExtractWAR |
Determines whether the found WAR file should be extracted to a temporary directory or not. |
|
DefaultsDescriptor |
The XML file that configures the web service. |
If the web application is to be restricted to specific virtual hosts, this can be done with the XML fragment above.