CONTENTS | PREV | NEXT

JNDI API

Introduction

Goals and Design Principles
Overview of the Architecture

Fundamentals

Naming -- The Foundation
Directory Objects
URLs and Composite Names
Events

 

Overview of the Interface

The Naming Package -- javax.naming
Contexts
The Initial Context
Names
Bindings
References
Referrals
The Directory Package -- javax.naming.directory
Directory Objects
Attributes
Directory Objects as Naming Contexts
The Initial Context
Searches
Schema
The Event Package -- javax.naming.event
Naming Events
Naming Listeners
Event Registration and Deregistration
Exception Handling
The LDAP Package -- javax.naming.ldap
Extended Operations
Controls
The Initial Context
Unsolicited Notifications
 

Configuration

Environment Properties
Context Environment
Resource Files
Application/Applet-scope Standard JNDI Properties
How the Environment Properties are Set
Modifications to the Environment
 

Scenarios

User authentication
Electronic Mail
Databases
Browsing
Network Printing
 

Security Considerations

JNDI Classes
Security Model
Access To Servers
Sharing Context Handles
Context Environment
Class Loading
Serializable Objects
Responsibilities of Service Providers
 

Design Choices

Separation of Interfaces into Context and DirContext
Separation of JNDI into Different Functional Packages
Separation of Client APIs and Service Provider Interfaces
Multiple methods for listing Context
Support for Federation
DirContext versus DirObject
Support for Schemas
Overloaded Methods in Context and DirContext
Reference and Referenceable
Automatically Turning References into Objects

Appendix A: JNDI Standard Environment Properties

Appendix B: Examples for LDAP Programmers

Appendix C: Legend for Class Diagram

Appendix D: JNDI Change History


CONTENTS |