The Java Naming and Directory Interface
  • The Java Naming and Directory Interface is a Java specification for a relatively generic naming service
    • A naming service takes human readable names, looks them up, and returns information about the named entity
    • In the case of the JNDI, the information returned is an object
  • The JNDI supports
    • Interoperation with other services, e.g. LDAP, NIS, and COS Naming
    • Remote access, e.g. listens on a particular TCP/IP port
    • Multiple implementations
  • Typically, EJB software comes with a naming implementation that supports remote access
    • Home interfaces are registered under particular names
    • Clients are configured so that they can access the EJB software's JDNI
    • Clients look up the name of a home interface and receive a home object
    • Using the home object, EJB's can now be created and found

Next Slide >>