In the 6.0 version of the Web Server, information pertaining to web applications was stored in the server.xml file and the web-apps.xml file. The web-apps.xml file is not supported in Sun Java System Web Server 6.1, and web application data is now stored in the following files:
The VS (virtual server) element in the server.xml file in Sun Java System Web Server 6.1 now contains a WEBAPP (web application) element for every web application it hosts. The attributes of the WEBAPP element are consistent with the mechanism used in Web Server 6.0 to configure web applications and are dynamically reconfigurable, that is, they do not require a server restart in order for changes to be applied to the server instance.
For every web application, the deployment descriptor file, sun-web.xml, is created in the <web-application>/WEB-INF directory. The deployment descriptor file is based on the schema file, sun-web-app_2_3-1.dtd, which is compliant with the Servlet 2.3 specification. This schema file is also located in the <web-application>/WEB-INF directory.
If you have used the web-apps.xml file to tune certain server parameters in the 6.0 version of the Web Server, you would perform an identical function using the sun-web.xml deployment descriptor in Sun Java System Web Server 6.1. Following is an example reap interval which specifies the number of seconds between checks for expired sessions.
In Web Server 6.0:
<init-param> <param-name>reapInterval</param-name> <param-value>180</param-value> </init-param>
In Web Server 6.1:
<sun-web-app> ... <session-config> <session-manager> <manager-properties> <property name=”reapIntervalSeconds” value=”180”> </manager-properties> </session-manager> ... </session-config> ... </sun-web-app>
For more information on the deployment descriptor files supported in Sun Java System Web Server 6.1, see the Sun Java System Web Server 6.1 SP10 Programmer’s Guide to Web Applications.