Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic Question-Serialization & Remote Oject

 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have just started preparing for the EJB exam...I am reading the "HeadFirst EJB"
I have a basic question....

What is the difference technically between Serializing an object and sending and sending the remote object stub.... Can anyone help me understand what happens in each case?

Thanks for your help in advance
Srividhya
 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think i am not clear in the question i asked since no one answered it.

Let me try to rephrase it...

I understand an object gets Serialied in one end and Deserialized in another end. The class should be on both ends to get this working fine.
When a Client needs to pass a Remote object... It passes its stub. In this case also the class needs to be on both the ends.

In serialization the object is converted to raw byte streams.

What exactly is the content of the Remote Object Stub... how does it work? What makes it different from Serialization.
Say if Remote Object X is passed from Client A to Client B and Client B changes its value... how does that reflect on the remote object?

Please correct me if i am wrong in what I said. Please thro some light on how Remote Stub Work generally and what it will have?

Thanks for your help in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic