Show TOC Start of Content Area

Procedure documentation Enabling Stateful Session Failover  Locate the document in its SAP Library structure

Use

Use this procedure to enable stateful session failover for a specific stateful session bean in your EJB application.

You can use the stateful session failover when your stateful session beans are not involved in an HTTP session and invoked by RMI/P4 clients. If your beans are involved in an HTTP session and HTTP failover is enabled, you do not need to enable the stateful session failover.

Procedure

       1.      Open the ejb-j2ee-engine.xml.

       2.      From the right-hand pane, choose the Enterprise Beans tab.

       3.      Open the session beans tree structure.

       4.      From your bean tree sub-structure, choose properties.

       5.      In the right-hand pane, enter true for the Stateful Session Bean failover property.

To disable the stateful session failover, remove the value of this property.

Result

If you enable the stateful session failover, the NetWeaver Developer Studio will generate the following source code:

Syntax

<property>

   <property-name>stateful-failover</property-name>

   <property-value>true</property-value>

</property>

 

 

End of Content Area