directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: LDAP Connection Pooling
Date Mon, 12 Dec 2016 17:31:33 GMT
Hi Greg,


Can you fill a JIRA ? I may fix the issue/web site soon,  but atm I'm in a
train, and I will forget about the issue ig it's not in a ticjket...

Thanks !

Le lun. 12 déc. 2016 à 17:36, Greg Thomas <greg.d.thomas@gmail.com> a
écrit :

> At
>
>
> http://directory.apache.org/api/user-guide/2.1-connection-disconnection.html
>
> there's a nice easy to follow example of how to set up connection pooling.
>
>
>
> The unfortunate thing is that it just doesn't work. The following line:
>
>
>
> PoolableLdapConnectionFactory factory = new
>
> PoolableLdapConnectionFactory( config );
>
>
>
> won't compile because PoolableLdapConnectionFactory isn't a class. I'm
>
> guessing this is a change in API that's not yet filtered through to the
>
> documentation yet. Digging around 1.0.0-RC2 does turn up either
>
> DefaultPoolableLdapConnectionFactory or
>
> ValidatingPoolableLdapConnectionFactory
>
>
>
> Is it simply a case of picking one of those based on the behaviour I want.
>
> Given I'm connecting multiple times to the same server with the same user,
>
> from my reading of the Javadoc I can simply get away with the
>
> DefaultPoolableLdapConnectionFactory - have I missed anything?
>
>
>
> Thanks,
>
>
>
> Greg
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message