Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > LDAP connection pool

Thread Tools

LDAP connection pool

Posts: n/a
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","mypackag e.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","6 00000");
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?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic NAT pool doesn't report full when pool contains interface IP tom Cisco 0 10-09-2009 02:22 AM
does python have a generic object pool like commons-pool in Java Rick Lawson Python 8 07-16-2009 11:25 PM
PIX 501 issue routing between VPN pool and local pool eostrike Cisco 3 10-24-2008 09:43 PM
jndi ldap connection pool alan_sec Java 0 11-09-2006 12:09 PM
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. Guoqi Zheng ASP .Net 4 06-03-2004 06:39 PM