12.07.2015 Views

RPC, RMI and CORBA

RPC, RMI and CORBA

RPC, RMI and CORBA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Server Side: Important Detail—Java• In Java, all classes inherit from Object <strong>and</strong> arerequired to support Object’s core operations• remote objects need special implementations ofequals(), hashCode() <strong>and</strong> toString(), since thenormal implementations would require remotereferences but don’t throw RemoteExceptions• for remote objects, equals() <strong>and</strong> hashCode() operate onthe remote object identifier so equality <strong>and</strong> identityare the same• The required implementations are provided inUnicastRemoteObject. Either extend that class, orprovide reasonable implementations for these threemethods.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!