Sun GlassFish Enterprise Server v2.1.1 High Availability Administration Guide

Configuring Availability for an Individual Bean

To enable availability and select methods to be checkpointed for an individual SFSB, use the sun-ejb-jar.xml deployment descriptor file. .

To enable high availability session persistence, set availability-enabled="true" in the ejb element. To control the size and behavior of the SFSB cache, use the following elements:

For more information about sun-ejb-jar.xml, see The sun-ejb-jar.xml File in Sun GlassFish Enterprise Server v2.1.1 Application Deployment Guide.

Example 9–1 Example of an EJB Deployment Descriptor With Availability Enabled

        <ejb availability-enabled="true">