Name

RMIServerSocketFactory

Synopsis

This interface represents a source for server 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 the remote registry, and specialized sockets are needed to negotiate the firewall protocol.

The RMIServerSocketFactory is used to create ServerSockets that are used by remote objects to accept client connections.

public interface RMIServerSocketFactory {
// Public Instance Methods
   public abstract java.net.ServerSocket createServerSocket(
        int port) throws IOException;  
}

Implementations

RMISocketFactory

Passed To

java.rmi.activation.Activatable.{Activatable(), exportObject()}, java.rmi.registry.LocateRegistry.createRegistry(), 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.