Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the meaning of the term "serialized copy of the object"?  RSS feed

 
Shyam kumar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I was going thru the 2nd chapter of K&B and did not undstand the term "serialized copy of the object" is passed to the remote bean.
Can nyone explain it to me?

Thanks,
Naveen
 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naveen Sharma,

I hope you must be aquainted with the concept of serialization in java. We are in need to serialize the java objects when they need to be transported from one medium to another(e.g, over network) and their state(values of the members) need to be preserved.

In context of EJB when a client needs to invoke a bean(ejb) instance through interface then client(may be on another JVM or on another machiene on network) needs to pass serialized copy of instance once business methods has been invoked or any changes has been done.

Lets talk about form beans(contains members with getter and setter method) which are used most of the time to capture data from user interface(by mapping their members to form elements) then once user has filled their data then that data need to be sent back to server for processing. So, whatever data has been filled by user that need to be catered on server and hence its been serialized.

I hope now you must have got the idea why beans need to be serialized.

Cheers !!!
Sumit Malik
 
Shyam kumar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a greate reply I have now undustood this concept... A million thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!