This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Serialization" Watch "Serialization" New topic
Author

Serialization

Sumukh Deshpande
Ranch Hand

Joined: Feb 17, 2008
Posts: 87

I have seen in many web application practices that Java Beans are always serialized.
Can anybody please explain why?

Thanks in advance.
kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 82
serialization is the process of converting an object into a sequence of bits so that it can be persisted on a storage medium (such as a file, or a memory buffer) or transmitted across a network connection link to be "resurrected" later in the same or another computer environment.

In a good object oriented application you use bean to store and access the data and the main purpose of serialization is to pass on or persist the data. Since the data is in your bean, you serialize them.
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 341
Because the specs says so .
The class should be serializable. This allows applications and frameworks to reliably save, store, and restore the bean's state in a fashion that is independent of the VM and platform.


http://muhammadkhojaye.blogspot.com/
Vivek Singh
Ranch Hand

Joined: Oct 27, 2009
Posts: 92
Sumukh Deshpande wrote:I have seen in many web application practices that Java Beans are always serialized.
Can anybody please explain why?

Thanks in advance.

Lets say if you have saved some good songs in your ipod.And if you restart your ipod the song is gone..

So you will need to give it an injection of Serialization. To persist it.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Serialization