All remote servers are a subclass of the class UnicastRemoteObject in the rmi.server package. Extending this class means that it will be a (nonreplicated) remote object that is set up to use the default socket-based transport layer for communication. |
This is the inheritance diagram of the server classes: |
Beginning of example HelloImpl class: import java.rmi.*; import java.rmi.server.*; public class HelloImpl extends UnicastRemoteObject implements Hello |
Object |
Remote Object |
RemoteStub |
RemoteServer |
UnicastRemoteObject |
Remote interface |