uCosminexus Application Server, EJB Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.11.2 Timeout of a Stateful Session Bean

Timeout of Stateful Session Beans is a functionality that monitors the time that has elapsed since the Stateful Session Bean was last accessed and uses a timer to delete the Stateful Session Beans not accessed from the client even after the elapse of the specified time. You can specify the timeout period in the EJB container. The Stateful Session Beans engaged in a transaction, however, are not deleted.

If a Stateful Session Bean that has been deleted due to a timeout is invoked, the following exceptions are thrown based on the type of the interface:

The timeout settings for the Stateful Session Bean are specified as attributes (properties) of the Session Beans included in a J2EE application. For details on the settings, see 2.11.6 Defining in cosminexus.xml.