EJB Passivation and activation - What is Passivation and activation in EJB?

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.
Describe the life cycle for stateless and Stateful beans.
EJB Stateless and Stateful beans - Between the client and the session bean, the state of the conversation can be maintained using a stateful session bean...
EJB QL: What is EJB QL?
EJB QL stands for Enterprise Java Beans - Query Language. It was introduced in the EJB 2.0 specification....
EJB Context: What is an EJB Context?
EJB Context - EJBContext is an interface implemented by the container. It is a part of the bean-container contract...
Post your comment