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

setCacheStub

open fun setCacheStub(cacheStub: Boolean): Unit

Set whether to cache the RMI stub once it has been located. Default is "true".

Can be turned off to allow for hot restart of the RMI server. In this case, the RMI stub will be fetched for each invocation.

See Also
#setLookupStubOnStartup