| Author |
Difference between Passivation, Serialisation and marshelling
|
Navin Pillu
Ranch Hand
Joined: Apr 19, 2005
Posts: 103
|
|
Hi All
Could anybody explain there terms Passivation, Serialisation and marshelling?
Thanks
Navin
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
Googling for these should bring you amazing results.
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Akilan Paul
Ranch Hand
Joined: May 22, 2006
Posts: 40
|
|
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.
Serialization is a mechanism by which you can save the state of an object by converting it to a byte stream.
In few words, "marshalling" refers to the process of converting the data or the objects inbto a byte-stream, and "unmarshalling" is the reverse process of converting the byte-stream beack to their original data or object. The conversion is achieved through "serialization".
The purpose of the "marshalling/unmarshalling" process is to transfer data between the RMI system.
|
Regards,
Aki
|
 |
 |
|
|
subject: Difference between Passivation, Serialisation and marshelling
|
|
|