Removal or Passivation of Beans

Technote (FAQ)
Problem
When does the EJB container remove or passivate the EJBs?
Solution
1. Beans are not removed or passivated by the EJB Container until the bean cache requires it (i.e. when more beans are present than the cache management strategy allows for).
2. If an active bean is in a timeout state and a method is issued against it, the exception "ObjectNotFoundException" is generated.

3. If a bean does not have a method issued against it, e.g. bean is not referenced in cache, and the bean cache is not large enough to force an eviction (where further action would be taken and timeout detected, e.g. during a method call or passivation), the bean will not be taken from the cache and a "remove" will not be executed against it.











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, EJB Container
Operating system(s): Multi-Platform
Software version: 3.5, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.5, 3.5.6
Software edition: Edition Independent
Reference #: 1053723
IBM Group: Software Group
Modified date: 2002-06-21