• Post Reply Bookmark Topic Watch Topic
  • New Topic

Referential integrity of objects in RMI  RSS feed

 
pal kandy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
2.6.3 Referential Integrity
If two references to an object are passed from one JVM to another JVM
in parameters (or in the return value) in a single remote method call
and those references refer to the same object in the sending JVM, those
references will refer to a single copy of the object in the receiving
JVM. More generally stated: within a single remote method call, the RMI
system maintains referential integrity among the objects passed as
parameters or as a return value in the call.
this is the para from sun's RMI specs.can any one
explain me the para? in wht case/s a remote method wud pass or return two references to same object?
Regards
nitin
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The receiving side (client) does not or cannot see a difference between two references to the same object. This is an important statement, as it rules out the idea of the receiver creating an object for each unique reference it receives, when what it should do is create one reference per unique object.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!