Show TOC Start of Content Area

Procedure documentation Specifying Stateful Session Beans' Timeouts  Locate the document in its SAP Library structure

Prerequisites

To enable passivation, your EJB assembly project must contain a stateful session bean.

Procedure

...

       1.      Open the ejb-j2ee-engine.xml

       2.      From the Enterprise Beans tab, choose Session beans your session bean

       3.      Specify the bean’s session timeout in the Session timeout field in the right-hand pane.

This graphic is explained in the accompanying text

We recommend that you set the value of the session timeout to be longer than the expected duration of the methods; otherwise, system errors may occur. The value of the session timeout is in seconds.

Caution

This timeout applies to stateful session beans only. Although it is possible to specify this timeout for stateless beans in the NetWeaver Developer Studio, the EJB Container will ignore the specified value.

       4.      To enable the passivation for stateful session beans, choose the Allow passivation option and specify the passivation timeout and the active sessions limit in the Passive bean timeout and the Active bean limit fields correspondingly. The value of the passivation timeout is in seconds.

This graphic is explained in the accompanying text

By default the passivation is disabled, that is the No passivation option is chosen.

Result

The session timeout is stored in the <session-timeout> element in ejb-j2ee-engine.xml.

The passivation, the passivation timeout and the active sessions limit are stored in the corresponding elements shown below:

This graphic is explained in the accompanying text

    <session-props>

        <session-timeout>36000</session-timeout>

        <passivation>

            <passive-timeout>3600</passive-timeout>

            <lrulimit>200</lrulimit>

        </passivation>

    </session-props>

 

See also:

Stateful Session Beans’ Timeouts

 

 

End of Content Area