Show TOC

Setting a Session TimeoutLocate this document in the navigation structure

Use

In the ejb-j2ee-engine.xml there is a specific session timeout property under the <bean-props> tag. You can use this property to set the time to destroy the instance of the bean. The default value is 1.

Procedure

To set the session timeout, you use the <session-timeout> property.

            <enterprise-bean>

   ...

   <bean-props>

      <property>

         <property-name>session-timeout</property-name>

         <property-value>86400</property-value>

      </property>

      ...

      <property>…</property>

   </bean-props>

</enterprise-bean>

         

More Information

ejb-j2ee-engine_3_0.xsd - Detailed description of the ejb-j2ee-engine.xml XML schema.

Editing the ejb-j2ee-engine.xml - Detailed description about how to edit the ejb-j2ee-engine.xml .