CHAPTER 5

image

Advanced Spring LDAP

In this chapter, you will learn

  • The basics of JNDI object factories.
  • DAO implementation using object factories.

JNDI Object Factories

JNDI provides the notion of object factories, which makes dealing with LDAP information easier. As the name suggests, an object factory transforms directory information into objects that are meaningful to the application. For example, using object factories it is possible to have a search operation return object instances like Patron or Employee instead of plain javax.naming.NamingEnumeration.

Figure 5-1 depicts the flow involved when an application performs LDAP operations in ...

Get Practical Spring LDAP: Enterprise Java LDAP Development Made Easy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.