Stateful Session Bean

Lifecycle:

Does Not Exist

Method-Ready

Passive

Method annotated with @Predestroy will be called if the bean is going from "Method-Ready" state to "Passive" state.Method annotated with @PostConstruct will be called if the bean is going from "Does Not Exist" state to "Method-Ready" state.Method annotated with @PrePassivate will be called upon the bean going from "Method-Ready" to "Passive".Method annotated with @PostActive will be executed upon the bean going from "Passive" to "Method-Ready".

The bean could go from "Method-Ready" or "Passive" to "Does Not Exist" in a timeout occurs.