RPC, RMI and CORBA
RPC, RMI and CORBA
RPC, RMI and CORBA
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.