Shri Kanaskar
Session Bean -STATEFUL
1>create
2>
setsessioncontext
3>
ejbCreate
ejbActivate
Passive
State
Does notExist
State
Ready
State
-------------------

-------------------
-------------------

-------------------
ejbPassive
1>remove
2>
ejbRemove
Once the bean is in ready state, however life is different for a stateful session bean. The container discard it to shrink size of a pool of bean, that will destroy realtionship with cleint. Th container however, remove from memory any stateful bean that is not actively servicing a method call. This process of migrating a bean to an auxiliary store is calles PASSIVATION. For passivatoin statte the container called method ejbPassivate(). The container reactivate bean when it is required by ejbActivate() method. This process is called activation. at this state the bean is in Ready state. When the container determines that a stateless bean can be safely destroyed, it invokes its ejbRemove method and transitions it to Does not Exist state.