Disable LDAP Pooling

Cantor, Scott cantor.2 at osu.edu
Tue Jan 14 13:32:44 EST 2020


On 1/14/20, 1:16 PM, "users on behalf of Crawford, Jeffrey" <users-bounces at shibboleth.net on behalf of jcrawford at it.ucla.edu> wrote:

> We tried commenting out the section:
> But that seems to revert pooling to default values, is there a flag of some sort that disables pooling altogether?

The code is:

        final BeanDefinition connectionPool = v2Parser.createConnectionPool(connectionFactory.getBeanDefinition());
        BeanDefinitionBuilder pooledConnectionFactory = null;
        if (connectionPool != null) {
            pooledConnectionFactory = BeanDefinitionBuilder.genericBeanDefinition(PooledConnectionFactory.class);
            pooledConnectionFactory.addConstructorArgValue(connectionPool);
            builder.addPropertyValue("connectionFactory", pooledConnectionFactory.getBeanDefinition());
        } else {
            builder.addPropertyValue("connectionFactory", connectionFactory.getBeanDefinition());
        }

With no element connectionPool is null, and it shouldn't be using a pooled connection factory, so my read is it wouldn't be pooling.

-- Scott




More information about the users mailing list