Class RmiExamples.RmiGreetingEndpoint
java.lang.Object
net.jrodolfo.java_evolution.java01.rmi.RmiExamples.RmiGreetingEndpoint
- Enclosing class:
RmiExamples
Local owner for the registry and exported remote object.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Unbinds the RMI service name.Returns the last request received by the exported object.Looks up the remote service through the registry.
-
Method Details
-
lookupGreetingService
public RmiExamples.GreetingService lookupGreetingService() throws RemoteException, NotBoundExceptionLooks up the remote service through the registry.- Returns:
- client-facing RMI stub
- Throws:
RemoteException- when registry communication failsNotBoundException- when the service name is not bound
-
lastReceivedRequest
Returns the last request received by the exported object.- Returns:
- last request received on the server side
-
close
Unbinds the RMI service name. The historical example has no modern unexport operation; tests may release the exported resources separately.- Throws:
RemoteExceptionNotBoundException
-