spring-framework / org.springframework.jndi / JndiObjectFactoryBean / setCache

setCache

open fun setCache(cache: Boolean): Unit

Set whether to cache the JNDI object once it has been located. Default is "true".

Can be turned off to allow for hot redeployment of JNDI objects. In this case, the JNDI object will be fetched for each invocation.

For hot redeployment, a proxy interface needs to be specified.

See Also
#setProxyInterface#setLookupOnStartup