You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Zoerner <SZ...@de.ibm.com> on 2005/08/03 08:58:15 UTC

Re: Client library (I like JNDI factories)

Hi all!

There is at least one feature within JNDI which I like: The factory 
concept (object.-, state-, cantrol factories).
It allows us to implement cross cutting concerns like mapping between 
POJOs and directory entries within on module, so the conversion is under 
the hood (i.e. you make a JNDI search call and get your domain objects). 
And it is quite simple to create vendor/schema specific behaviour and make 
it customizable (even during runtime). Same is true for creation of 
response controls for special LDAP controls.
Of course it is possible to create such a framewotk yourself, but in JNDI, 
it is already there (within the JDK).

But yes, I also prefer "explicit" libraries like Novell/Netscape, e.g. for 
LDIF functionality.

Greetings from Hamburg -- Stefan

--8<----------------------------------------------------------------

Stefan Zoerner, Dipl.-Math.

Advisory IT Architect, AMS Application Innovation
IBM e-business Innovation Center
Beim Strohhause 17 
20097 Hamburg

mail      szoerner@de.ibm.com
www    http://www.ibm.com/services/de/innovation

RE: Client library (I like JNDI factories)

Posted by "Noel J. Bergman" <no...@devtech.com>.
Stefan Zoerner wrote:

> There is at least one feature within JNDI which I like:
> The factory concept[.] It allows us to implement cross
> cutting concerns like mapping between POJOs and directory
> entries within on module

Agreed.

And creative use of custom Context classes, controls and extended operations
can also bring new features to JNDI.

> But yes, I also prefer "explicit" libraries like Novell/Netscape,
> e.g. for LDIF functionality.

Actually, I like some of the async capabilities, but those are more for
network interface issues than, for example, use by stored procedures or
triggers within the directory server, itself.

	--- Noel


Re: Client library (I like JNDI factories)

Posted by Stefan Zoerner <SZ...@de.ibm.com>.
A simple example may be found in the JNDI Tutorial:
http://java.sun.com/products/jndi/tutorial/objects/state/custom.html
(object and state factories for Person objects/entries)

An even more interesting one is the group functionality of the LDAP 
booster pack, which is implemented with JNDI state/object factories
http://java.sun.com/products/jndi/
cite: The Booster Pack contains support for both static and dynamic groups 
by representing them as group objects that can be read and stored in the 
directory. 

Greetings from Hamburg,
    Stefan

--8<----------------------------------------------------------------

Stefan Zoerner, Dipl.-Math.

Advisory IT Architect, AMS Application Innovation
IBM e-business Innovation Center
Beim Strohhause 17 
20097 Hamburg

mail      szoerner@de.ibm.com
www    http://www.ibm.com/services/de/innovation




Marc Boorshtein <mb...@gmail.com>
03.08.2005 12:43
Please respond to "Apache Directory Developers List"
 
        To:     Apache Directory Developers List 
<de...@directory.apache.org>
        cc: 
        Subject:        Re: Client library (I like JNDI factories)

 

Very interesting.  The factory concept in JNDI is nice (I would like
to do the something similar with JLDAP).  I'm not quite sure how that
helps with things like mapping between POJOs.  Could you give an
example?

Marc


On 8/3/05, Stefan Zoerner <SZ...@de.ibm.com> wrote:
> 
> Hi all! 
> 
> There is at least one feature within JNDI which I like: The factory 
concept
> (object.-, state-, cantrol factories). 
> It allows us to implement cross cutting concerns like mapping between 
POJOs
> and directory entries within on module, so the conversion is under the 
hood
> (i.e. you make a JNDI search call and get your domain objects). And it 
is
> quite simple to create vendor/schema specific behaviour and make it
> customizable (even during runtime). Same is true for creation of 
response
> controls for special LDAP controls. 
> Of course it is possible to create such a framewotk yourself, but in 
JNDI,
> it is already there (within the JDK). 
> 
> But yes, I also prefer "explicit" libraries like Novell/Netscape, e.g. 
for
> LDIF functionality. 
> 
> Greetings from Hamburg -- Stefan 
> 
> --8<----------------------------------------------------------------
> 
>  Stefan Zoerner, Dipl.-Math.
> 
>  Advisory IT Architect, AMS Application Innovation
>  IBM e-business Innovation Center
>  Beim Strohhause 17 
>  20097 Hamburg
> 
> mail      szoerner@de.ibm.com
>  www    http://www.ibm.com/services/de/innovation


Re: Client library (I like JNDI factories)

Posted by Marc Boorshtein <mb...@gmail.com>.
Very interesting.  The factory concept in JNDI is nice (I would like
to do the something similar with JLDAP).  I'm not quite sure how that
helps with things like mapping between POJOs.  Could you give an
example?

Marc


On 8/3/05, Stefan Zoerner <SZ...@de.ibm.com> wrote:
>  
> Hi all! 
>  
> There is at least one feature within JNDI which I like: The factory concept
> (object.-, state-, cantrol factories). 
> It allows us to implement cross cutting concerns like mapping between POJOs
> and directory entries within on module, so the conversion is under the hood
> (i.e. you make a JNDI search call and get your domain objects). And it is
> quite simple to create vendor/schema specific behaviour and make it
> customizable (even during runtime). Same is true for creation of response
> controls for special LDAP controls. 
> Of course it is possible to create such a framewotk yourself, but in JNDI,
> it is already there (within the JDK). 
>  
> But yes, I also prefer "explicit" libraries like Novell/Netscape, e.g. for
> LDIF functionality. 
>  
> Greetings from Hamburg -- Stefan 
> 
> --8<----------------------------------------------------------------
>  
>  Stefan Zoerner, Dipl.-Math.
>  
>  Advisory IT Architect, AMS Application Innovation
>  IBM e-business Innovation Center
>  Beim Strohhause 17 
>  20097 Hamburg
>  
> mail      szoerner@de.ibm.com
>  www    http://www.ibm.com/services/de/innovation