Sun GlassFish Enterprise Server 2.1 High Availability Administration Guide

Configuring Availability for Individual Web Applications

To enable and configure availability for an individual web application, edit the application deployment descriptor file, sun-web.xml. The settings in an application’s deployment descriptor override the web container’s availability settings.

The session-manager element’s persistence-type attribute determines the type of session persistence an application uses. It must be set to ha or replicated to enable high availability session persistence.

For more information about the sun-web.xml file, see The sun-web.xml File in Sun GlassFish Enterprise Server 2.1 Application Deployment Guide.


<sun-web-app> ... 
    <session-manager persistence-type="replicated"> 
        <property name="persistenceFrequency" value="web-method" /> 
        <property name="persistenceScope" value="session" /> 
    </session-manager> ... 
</session-config> ...