Difference between different Context classes

Adler_Steven always used this:

// Create the initial directory context

LdapContext ctx = new InitialLdapContext(env,null);

I use this:

DirContext ctx = new InitialDirContext(env);

both methods work for changing a password...

Can someone explain that to me please?

[306 byte] By [4tha] at [2007-11-27 10:05:00]
# 1
no idea
vimalan_a at 2007-7-13 0:39:59 > top of Java-index,Core,Core APIs...
# 2
From the JNDI tutorial, http://java.sun.com/products/jndi/tutorial/getStarted/overview/ldap.html the ldap class allows you to use specific ldap features such as the extended controls etc.
adler_stevena at 2007-7-13 0:39:59 > top of Java-index,Core,Core APIs...
# 3

> From the JNDI tutorial,

> http://java.sun.com/products/jndi/tutorial/getStarted/

> overview/ldap.html the ldap class allows you to use

> specific ldap features such as the extended controls

> etc.

ok so only using these extended tools forces me to make an instanz variable ctx of the InitialLdapContext, thank you i have understood it.

4tha at 2007-7-13 0:39:59 > top of Java-index,Core,Core APIs...