Hi.

I'm experimenting with a custom cdi context.
I've found all Beans for non-Serializable classes are PassivationCapable (
org.apache.webbeans.component.ManagedBean).
getId returns an id, and beanManager.getPassivationCapableBean works on it.
- checked Weld, and works same too -
Are there any circumstances a Bean not instance of PassivationCapable?

Is it something i can rely on?
For example use the passivation id for key in my contextual storage even
for beans with non-serializable beanClasses.
I know bean classes, interceptors, and decorators have to be Serializable
for a working passivation.

Thanks in advance,
Kimmel Tamás

Reply via email to