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

setExposeAccessContext

open fun setExposeAccessContext(exposeAccessContext: Boolean): Unit

Set whether to expose the JNDI environment context for all access to the target object, i.e. for all method invocations on the exposed object reference.

Default is "false", i.e. to only expose the JNDI context for object lookup. Switch this flag to "true" in order to expose the JNDI environment (including the authorization context) for each method invocation, as needed by WebLogic for JNDI-obtained factories (e.g. JDBC DataSource, JMS ConnectionFactory) with authorization requirements.