LDAP connection pool

Discussion in 'Java' started by alan_sec, Sep 5, 2006.

  1. alan_sec

    alan_sec Guest

    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
    alan_sec, Sep 5, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Linus Nikander
    Replies:
    5
    Views:
    529
  2. Replies:
    1
    Views:
    517
    Raymond DeCampo
    Feb 21, 2006
  3. alan_sec

    jndi ldap connection pool

    alan_sec, Nov 9, 2006, in forum: Java
    Replies:
    0
    Views:
    1,654
    alan_sec
    Nov 9, 2006
  4. Wei  Lu
    Replies:
    2
    Views:
    5,840
    Wei Lu
    Feb 16, 2009
  5. Rick Lawson
    Replies:
    8
    Views:
    785
    Graham Dumpleton
    Jul 17, 2009
Loading...

Share This Page