spring-framework / org.springframework.jndi / JndiObjectTargetSource / 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.

See Also
#setLookupOnStartup