LDAP connection pool

A

alan_sec

Hi.
I need some assistance.
I would like to create InitialDirContex for connecting to LDAP using
my own Socket Factory.
Hashtable ht = new Hashtable();
ht.put("java.naming.factory.initial","com.sun.jndi.ldap.LdapCtxFactory");
ht.put("java.naming.ldap.factory.socket","mypackage.MyLDAPSocketFactory");
ht.put("java.naming.ldap.version", "3");

I would like to have connection pool, but I read that when I use my own
Socket Factory, I can't use sun's connection pool.
Sun connection pool enable:
ht.put("com.sun.jndi.ldap.connect.pool", "true")
ht.put("com.sun.jndi.ldap.connect.pool.initsize", "1");
ht.put("com.sun.jndi.ldap.connect.pool.timeout","600000");
ht.put("com.sun.jndi.ldap.connect.pool.maxsize", "20");

Is there a way to create pool for my own Socket Factory, or to use some
other pool?
Thanx.
Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top