Defining session timeout settings for a bean

The timeout setting for a 2.x stateful session Enterprise Java™ bean is specified in the ibm-ejb-jar-ext.xmi file.

About this task

The session timeout setting is a WebSphere® Application Server extension to the Enterprise JavaBeans 2.x specification. For more information, see the WebSphere Application Server documentation.

Procedure

  1. Switch to the Java EE perspective.
  2. In the Enterprise Explorer view, select the desired EJB module.
  3. Right click the deployment descriptor, and select Open With > Deployment Descriptor Editor.
  4. On the Overview page of the editor, go to the Enterprise JavaBeans section and click the bean that you want to edit.
  5. On the Beans page of the editor, go to the Programming Model Extensions section.
  6. In the Session Timeout section, in the Timeout Integer field, specify the lifetime, in minutes, for the session timeout value. This value indicates how long session will run until it times out.
  7. In the Activity Session Type field, select Bean or Container to indicate the type of activity to which you want the session timeout to apply.

Results

For additional information about Session Timeout settings, see the WebSphere Application Server documentation.

Feedback