What is Passivation and activation in EJB?Passivation:
- In case of stateful session beans, we need to store the client conversation in order to avail it in client's next request. Keeping the client conversation in the memory, it eats lots of memory resources. In order to preserve resources, EJB saves data from memory to hard disk thus allowing memory to be reclaimed. This process of saving memory data to hard disk is called passivation.
Activation :
- The process of bringing back saved data from hard disk to memory is called activation.
|