Show TOC

Procedure documentationSetting a Session Timeout Locate this document in the navigation structure

 

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.

Syntax Syntax

  1. <enterprise-bean>
    
       ...
    
       <bean-props>
    
          <property>
    
             <property-name>session-timeout</property-name>
    
             <property-value>86400</property-value>
    
          </property>
    
          ...
    
          <property>…</property>
    
       </bean-props>
    
    </enterprise-bean>
    
End of the code.
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.