Name
ServerRef
Synopsis
This is an interface to the server-side implementation of a remote
object. The getClientHost()
method returns the name of the host whose
remote method call is currently being serviced by the object
implementation. If the server object is not servicing a remote method
call when getClientHost()
is called, then a ServerNotActiveException
is thrown. The exportObject()
method is meant to either create or find
a client stub for the given object implementation, using the data
provided.
public interface ServerRef extends RemoteRef { // Public Constants public static final long serialVersionUID; // =-4557750989390278438, 1.2 // Public Instance Methods public abstract RemoteStub exportObject(Remote obj, Object data) throws RemoteException; public abstract String getClientHost( ) throws ServerNotActiveException; }
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.