You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Greg Thomas <gr...@gmail.com> on 2016/12/12 16:34:02 UTC
LDAP Connection Pooling
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
Re: LDAP Connection Pooling
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 13/12/16 à 10:09, Greg Thomas a écrit :
> PS. I'd be happy to submit a pull request if it would help; if you let me
> know some of the answers to the queries I raised I can sort something out,
I'll come back to you with answers tonite...
--
Emmanuel Lecharny
Symas.com
directory.apache.org
Re: LDAP Connection Pooling
Posted by Greg Thomas <gr...@gmail.com>.
PS. I'd be happy to submit a pull request if it would help; if you let me
know some of the answers to the queries I raised I can sort something out,
Greg
On 12 December 2016 at 20:35, Greg Thomas <gr...@gmail.com> wrote:
> Hi Emmanuel - I've raised a JIRA at https://issues.apache.org/
> jira/browse/DIRAPI-287 - I've also asked a couple of possibly dumb
> questions as part of this as to me some things are not totally clear in
> this area so the doc's may need updating to reflect this.
>
> Greg
>
> On 12 December 2016 at 17:31, Emmanuel Lecharny <el...@apache.org>
> wrote:
>
>> 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 <gr...@gmail.com> a
>> écrit :
>>
>> > At
>> >
>> >
>> > http://directory.apache.org/api/user-guide/2.1-connection-di
>> sconnection.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
>> >
>> >
>>
>
>
Re: LDAP Connection Pooling
Posted by Greg Thomas <gr...@gmail.com>.
Hi Emmanuel - I've raised a JIRA at
https://issues.apache.org/jira/browse/DIRAPI-287 - I've also asked a couple
of possibly dumb questions as part of this as to me some things are not
totally clear in this area so the doc's may need updating to reflect this.
Greg
On 12 December 2016 at 17:31, Emmanuel Lecharny <el...@apache.org>
wrote:
> 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 <gr...@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
> >
> >
>
Re: LDAP Connection Pooling
Posted by Emmanuel Lecharny <el...@apache.org>.
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 <gr...@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
>
>