public static synchronized void setFailureHandler (RMIFailureHandler fh)

Sets the failure handler to be called by the RMI runtime if server socket creation fails. By default, if no failure handler is installed and server socket creation fails, the RMI runtime does attempt to recreate the server socket.

If there is a security manager, this method first calls the security manager's checkSetFactory method to ensure the operation is allowed. This could result in a SecurityException.

Parameters:
fh    the failure handler

Exceptions:
SecurityException    if a security manager exists and its checkSetFactory method doesn't allow the operation.

See also:
getFailureHandler, java.rmi.server.RMIFailureHandler.failure(Exception)

Since:  JDK1.1