Socket « jndi « Java Enterprise Q&A

1. How to pass arguments to an LDAP custom socket factory with JNDI?

I'm using JNDI to make LDAP connections. Example:

Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, LDAPS_URL);
env.put("java.naming.ldap.factory.socket", "ldaptest.CustomSocketFactory");
I need to pass parameters at run time to the CustomSocketFactory. Specifically a reference to a client ...

2. JNDI over HTTPS?

3. JNDI and socket problems

Hi, I have a windows 2000 client, which is using JNDI to make TCP/IP socket connection to the LDAP server on solaris machine. I'm having the following problem: 1) Quite frequently, I was receiving CommunicationException in JNDI ( Meaning, the socket connection is reset by peer) on the client application. After debugging through network snoop of the server, I found out ...