A simple example may be found in the JNDI Tutorial:
(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
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 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 <mboorshtein@gmail.com>

03.08.2005 12:43
Please respond to "Apache Directory Developers List"

        To:        Apache Directory Developers List <dev@directory.apache.org>
        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


On 8/3/05, Stefan Zoerner <SZOERNER@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