Forums Register Login

two objects implementing same remote interface

+Pie Number of slices to send: Send
If two or morethan one object implements the same remote interface ,

are those objects equal.do they can not have different data.
+Pie Number of slices to send: Send
No. Even if the same implementation is bound as another name in the RMI registery, each can hold different data.

Another problem is with the "equals" method - if a client calls "equals" on two stubs, the default "equals" method that tests object identity is used, which isn't going to return true unless you have the exact same stub. "equals" isn't going to test actual data equality on the server.
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 937 times.
Similar Threads
How to design the interface
Interfaces
Local Vs Remote
CMR and Local Interface
why two interfaces
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:37:12.