I haven't worked with EJB. Every now and then I hear about the terms "activation" and "passivation" in context of EJB's. Maybe these terms are equally applicable for normal POJO objects also.
Are these two concepts different names for the concept of deseralization and serialization respectively, or is there more to it than this?
Yes, passivation will work as serialization and activation will work as deserializatoin of EJB's.
Basically, the ejbActivate()
and ejbPassivate()
methods are callback methods for EJB stateful session beans. Internally, these methods will perform serializarion and deserialization, saving the state of the beans.