以 PDF 格式下载本书 (1536 KB)
Configuring Availability for an Individual BeanTo 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 Java System Application Server 9.1 Application Deployment Guide. Example 9–1 Example of an EJB Deployment Descriptor With Availability Enabled<sun-ejb-jar>
...
<enterprise-beans>
...
<ejb availability-enabled="true">
<ejb-name>MySFSB</ejb-name>
</ejb>
...
</enterprise-beans>
</sun-ejb-jar>
|
|