• Post Reply Bookmark Topic Watch Topic
  • New Topic

what does the stub do  RSS feed

 
sushant prabhu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope my doubt is valid.
i hav read that the stub converts method calls from java format
to a network format so that it can be transported over the network. This process is called marshalling.
What is this network format.
isnt the above procedure similar to object seriallisation.
so can i assume that serialisation and marshalling mean one and the same. if not can somebody please ellaborate on why to use 2 different terminologies serialisation and marshalling
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
network formate is tcp/ip packets
serialization means to convert some object to such a formate which can be sent over a network or can be saved on the hard drive
then reconstruct the object back to the original object
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
network formate is tcp/ip packets
serialization means to convert some object to such a formate which can be sent over a network or can be saved on the hard drive
then reconstruct the object back to the original object
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you call a method on a remote object you have to do more than just serializes objects. You have to format a message that names the remote object as well as the method that is to be called and the parameters that are passed. The formatting of this message is called marshalling. The message must then be serialized so that it can be sent across the network. I believe that the format of this message conforms to the IIOP protocol that CORBA uses.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!