EJB Containers Passivates EJB Stateful Beans If Removal Timeout In EJB Container Less Than Cache Idle Timeout (Doc ID 1435217.1)

Last updated on DECEMBER 11, 2016

Applies to:

Oracle GlassFish Server - Version 3.0.1 to 3.1.1 [Release 3.0 to 3.1]
Information in this document applies to any platform.

Symptoms

According to the definition of ejb-container attribute:



However, in GlassFish 3.0 to GlassFish 3.1.1, if removal-timeout-in-seconds is configured to less than or equal to cache-idle-timeout-in-seconds, the EJB container passivates stateful beans instead of removing the beans immediately.

If there is application code that has @PrePassvate and @PreDestroy methods, @PrePassivate will be called instead of @PreDestroy.

Example or test case is available in GLASSFISH-16188.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms