• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

equals method of stub and remote object

 
Jack Lau
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

When I get the stub (ref to Remote Object) from, then I call the equals method, how does the container know that whether I call the stub's equals method or Remote object's equals method ?

Thanks,
Jack
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
you always call method on the stub and not on the remote object.
 
Jack Lau
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you !
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And for what possible reason would you use equals() on the remote stubs?
As far as I know the spec doesn't specify any type of behaviour for the equals() method on the stubs.

Unless of course you really mean to call isIdentical().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic