Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-22 Thread Stefan Seelmann
Would a Java Dynamic Proxy help? It would implement the LdapConnection interface. When a method is invoked it borrows a connection from the pool (without testing it), executes the method, returns the connection to the pool, and returns the result. When the method execution fails with a specific

Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-22 Thread Shawn McKinney
> On Mar 22, 2021, at 11:05 AM, Emmanuel Lécharny wrote: > > LDAP connections are quite stable. Again, this check is there to respect the > commons-pool API contract. If the connection is dead, then doing this check > will let the pool fetching another connection, which is good. OTOH, if you

Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-22 Thread Emmanuel Lécharny
On 22/03/2021 16:45, Shawn McKinney wrote: On Mar 22, 2021, at 10:43 AM, Shawn McKinney wrote: The risk not doing such a check is very very tenuous. Sorry, but asking for a clarification here. Do you mean, not doing the check is risky? Or, is OK. LDAP connections are quite

Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-22 Thread Shawn McKinney
> On Mar 22, 2021, at 10:43 AM, Shawn McKinney wrote: > >> >> The risk not doing such a check is very very tenuous. > Sorry, but asking for a clarification here. Do you mean, not doing the check is risky? Or, is OK. > This is what I was hoping you were going to say. I’ve tested