What is the difference between activation and passivation

Answered by Jey on 2005-05-08 11:55:29:

Activation and Passivation is appilicable for only Stateful session bean and Entity bean.  
 
When Bean instance is not used for a while by client then EJB Container removes it from memory and puts it in secondary storage (often disk) so that the memory can be reused. This is called Passivation. 
 
When Client calls the bean instance again then Container takes the passivated bean from secondary storage and puts it in memory to serve the client request. This is called Activation.

Showing Answers 1 - 1 of 1 Answers

Jey

  • May 8th, 2005
 

Activation and Passivation is appilicable for only Stateful session bean and Entity bean.  
 
When Bean instance is not used for a while by client then EJB Container removes it from memory and puts it in secondary storage (often disk) so that the memory can be reused. This is called Passivation. 
 
When Client calls the bean instance again then Container takes the passivated bean from secondary storage and puts it in memory to serve the client request. This is called Activation.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions