You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Kiran Ayyagari <ay...@gmail.com> on 2009/06/07 18:00:06 UTC

[Shared LDAP] removing the dependency on javax.naming.* classes

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?

     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.


Kiran Ayyagari

Re: [Shared LDAP] removing the dependency on javax.naming.* classes

Posted by Stefan Seelmann <se...@apache.org>.
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.

+1
Give it a try

Stefan