You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "lucas theisen (JIRA)" <ji...@apache.org> on 2015/05/20 02:59:00 UTC

[jira] [Commented] (FC-42) Avoid pulling a new connection from the LDAP connection pool

    [ https://issues.apache.org/jira/browse/FC-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551586#comment-14551586 ] 

lucas theisen commented on FC-42:
---------------------------------

Not that it would be much of a help with transactions, but I did create a connection factory for use with the connection pool that will only rebind when necessary, ValidatingPoolableLdapConnectionFactory.

> Avoid pulling a new connection from the LDAP connection pool
> ------------------------------------------------------------
>
>                 Key: FC-42
>                 URL: https://issues.apache.org/jira/browse/FC-42
>             Project: FORTRESS
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-RC39
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.0.0-RC41
>
>
> Atm, everytime we want to send a request to the LDAP server, we are acquiring a connection from the LDAP pool of connections. It's quite expensive, as each connection has to be rebind everytime we push it back, and we do a validation (thus a read) everytime we ask back a connection. 
> If we were to pass the connection we picked in the first call to all the methods, we would save those costly Bind and check. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)