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.
fh | the failure handler |
SecurityException | if a security manager exists and its
checkSetFactory method doesn't allow the
operation. |
getFailureHandler, java.rmi.server.RMIFailureHandler.failure(Exception)
Diagram: Socket Factory