Details
-
Feature Request
-
Resolution: Done
-
Major
-
1.0.4.Final
-
None
Description
CDI 1.0 Specification states (Section 6.6.2):
A bean is called a passivation capable dependency if any contextual reference for that bean is preserved when the object
holding the reference is passivated and then activated.
The container must guarantee that:
• all session beans are passivation capable dependencies,
• all beans with normal scope are passivation capable dependencies,
• all passivation capable beans with scope @Dependent are passivation capable dependencies,
• all resources are passivation capable dependencies, and
• the built-in beans of type Instance, Event, InjectionPoint and BeanManager are passivation capable dependencies.
A custom implementation of Bean is a passivation capable dependency if it implements
Scope() returns a normal scope type.
There is no test for the fourth bullet. Such resources would include the entitymanager and other items from JNDI (mind is drawing a blank atm).