mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 21:12:18 +00:00
Added setter method to allow connection pooling to be disabled.
This commit is contained in:
parent
ab0c24bd97
commit
fe2f4e4a3b
@ -51,8 +51,8 @@ import org.apache.commons.logging.LogFactory;
|
||||
* that user.
|
||||
* </p>
|
||||
* <p>
|
||||
* Connection pooling is enabled for anonymous or manager connections, but not when binding
|
||||
* as a specific user.
|
||||
* Connection pooling is enabled by default for anonymous or manager connections, but
|
||||
* not when binding as a specific user.
|
||||
* </p>
|
||||
*
|
||||
* @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/connect/pool.html">The Java
|
||||
@ -281,4 +281,15 @@ public class DefaultInitialDirContextFactory implements InitialDirContextFactory
|
||||
public void setMessageSource(MessageSource messageSource) {
|
||||
this.messages = new MessageSourceAccessor(messageSource);
|
||||
}
|
||||
|
||||
/**
|
||||
* Connection pooling is enabled by default for anonymous or "manager"
|
||||
* connections when using the default Sun provider. To disable all
|
||||
* connection pooling, set this property to false.
|
||||
*
|
||||
* @param useConnectionPool whether to pool connections for non-specific users.
|
||||
*/
|
||||
public void setUseConnectionPool(boolean useConnectionPool) {
|
||||
this.useConnectionPool = useConnectionPool;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user