| Author |
two objects implementing same remote interface
|
vijay kumar
Ranch Hand
Joined: Nov 05, 2005
Posts: 58
|
|
If two or morethan one object implements the same remote interface , are those objects equal.do they can not have different data.
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
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.
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
 |
|
|
subject: two objects implementing same remote interface
|
|
|