aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Difference between Passivation, Serialisation and marshelling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Difference between Passivation, Serialisation and marshelling" Watch "Difference between Passivation, Serialisation and marshelling" New topic
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: 9426
    
    2

Googling for these should bring you amazing results.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Passivation, Serialisation and marshelling