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
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