Originally posted by ShivPrakash Srivastava:
Can a bean can be removed(Killed) in its passivated state may be due to timeout or any other reason
Thanks
Shiv
It depends on what do you mean by removed/killed. Are you refering to the invocation of the ejbRemove method? Or a transition from the passivated state to "does not exist" state.
If you recall from the life-cycle diagram of a stateful session bean or entity bean, when the bean is in passivated state, it can transit back to the "does not exist" state after a timeout. Also, ejbRemove method is not invoked at all.