uCosminexus Application Server, EJB Container Functionality Guide

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

2.11.3 Timeout of the EJB objects in the Entity Beans

Timeout of the EJB objects is a functionality for deleting the EJB objects, from among those connected to a passivated Entity Bean, for which the specified time period has elapsed. You can specify the timeout period in the EJB container. Note that if an Entity Bean that deletes the EJB objects due to a timeout is invoked, an exception (java.rmi.NoSuchObjectException) occurs.

The EJB local objects of the local interface are also similarly deleted due to a timeout. If an Entity Bean contains both EJB objects and EJB local objects, when the passivated Entity Bean is not accessed within the specified time from either of the interfaces, the EJB objects and the EJB local objects are deleted. If the deleted EJB local objects are invoked, an exception (javax.ejb.NoSuchObjectLocalException) occurs.

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