directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject Re: [Shared LDAP] removing the dependency on javax.naming.* classes
Date Sun, 07 Jun 2009 16:32:55 GMT
Kiran Ayyagari wrote:
> hello guys,
>     Is it possible to completely remove the dependency on classes under
> javax.naming package?.
>     These classes are basically used by the LdapDN and associated
> parsers. A quick glance at the
>     code gives me a perception that it is possible.
>     For example the javax.naming.InvalidNameException is thrown by us
> when the parsing of DN fails,
>     which IMHO can be replaced with a custom exception class.
>     There are also some interfaces like javax.naming.Name which LdapDN
> class implements, can we have
>     a clone of javax.naming.Name?

The only pb from the studio side is that we use LdapDN and directly feed
it into JNDI because it implements javax.naming.Name. However it should
be easy to convert between LdapDN and javax.naming.ldap.LdapName.

>     All this was triggered when a user on IRC cannot use ADS on google
> app-engine cause they don't allow
>     javax.naming classes.
>     He can use client API to connect to a outside directory, but only
> when we take this javax.naming out
>     from shared-ldap module.
>     I also think that this way the client API will be an ideal solution
> and the adoption rate may increase.

Give it a try


View raw message