• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI

 
Nedungadi Poornima
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

"When you pass a serialized object as an argument or return value, you better make sure the class file for the type you're passing is available on the other side. If the class isnt there, the object will never deserialize and you're screwed"...

How come the class should be there on the Remote Object when we pass a serialized object? I am not clear with the above statement. Can anyone of you help me out???

I'm reading HF EJB. & this sentence is there in PgNo. 77..

Thnx,

Poornima
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class needs to be there (somewhere in the classpath), while you're passing an object, i.e., an instance of the class. Without the class, the receiving machine can't know what kind of thing it is that you're sending.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!