Name
RMIClientSocketFactory
Synopsis
This interface represents a source for client sockets that is used by
the RMI internals to make client connections during RMI calls. It’s
possible to provide a custom socket factory to be used with a
particular remote object, by using the appropriate constructors on the
UnicastRemoteObject
or Activatable
classes, or with a particular
registry, by using the appropriate LocateRegistry.createRegistry()
method. This can be useful in situations where a firewall lies between
the client and the server object or remote registry, and specialized
sockets are needed to negotiate the firewall protocol.
The RMIClientSocketFactory
associated with a remote object is used by
any remote stub references to establish connections with the server
object.
public interface RMIClientSocketFactory { // Public Instance Methods public abstract java.net.Socket createSocket(String host, int port) throws IOException; }
Implementations
RMISocketFactory
Passed To
java.rmi.activation.Activatable.{Activatable()
, exportObject()}
, java.rmi.registry.LocateRegistry.{createRegistry()
, getRegistry()}
, UnicastRemoteObject.{exportObject()
, UnicastRemoteObject()}
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.