why serialization?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, February 27, 2006 06:39 AM

Can any one tell me the need of serialization?
Thanks in Advance.

Re: why serialization?

Posted By:   ankush_purwar  
Posted On:   Monday, February 27, 2006 02:14 PM

Have you ever used RMI ?
If yes, then you must know the need of serialization.

Re: why serialization?

Posted By:   Anonymous  
Posted On:   Monday, February 27, 2006 07:10 AM

Hi ,


Serialization is to make your Objects persistant.persistant means long live.

I will give u a simple example where this will be used.Take a client server architecture where u will have a session which is stateful object at serverside.

and you are maintaining some state in that.And after somne time u are idle for 10 - 20 mins.in mean while holding your object is meaning less for the server as you are idle and not working for long period of the time so it will serialize ur stateful session object some where in server and continue with the other works.
And when ever u give ur next request after some time it will deserialize that and will maintain the same state where u left.

Think if serialization is not done what happenes to your state after you came back you will loose the data.


hope u understood well and see this link for more idea


Regards
Krishna Rajendra
About | Sitemap | Contact