spring-framework / org.springframework.remoting.rmi / JndiRmiClientInterceptor / setRefreshStubOnConnectFailure

setRefreshStubOnConnectFailure

open fun setRefreshStubOnConnectFailure(refreshStubOnConnectFailure: Boolean): Unit

Set whether to refresh the RMI stub on connect failure. Default is "false".

Can be turned on to allow for hot restart of the RMI server. If a cached RMI stub throws an RMI exception that indicates a remote connect failure, a fresh proxy will be fetched and the invocation will be retried.

See Also
java.rmi.ConnectExceptionjava.rmi.ConnectIOExceptionjava.rmi.NoSuchObjectException