• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Basic Question-Serialization & Remote Oject

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic