![]() ![]() ![]() ![]() |
JNDI Overview |
This packageprovides the means by which developers of different naming/directory service providers can develop and hook up their implementations so that the corresponding services are accessible from applications that use the JNDI.
Plug-in Architecture
The service provider package allows different implementations to be plugged in dynamically. These different implementations include those for the initial context, and implementations for contexts that can be reached from the initial context.Java Object Support
The service provider package provides support for implementors of the Context.lookup()method and related methods to return Java objects that are natural and intuitive for the Java programmer. For example, when looking up a printer name from the directory, it is natural for you to expect to get back a printer object on which to operate. This support is provided in the form of object factories.
This package also provides support for doing the reverse. That is, implementors of the Context.bind()
method and related methods can accept Java objects and store the objects in a format acceptable to the underlying naming/directory service. This support is provided in the form of state factories.
Multiple Naming Systems (Federation)
JNDI operations allow applications to supply names that span multiple naming systems. So in the process of completing an operation, one service provider might need to interact with another service provider, for example, to pass on the operation to be continued in the next naming system. The service provider package provides support for different providers to cooperate to complete JNDI operations.JNDI Overview: End of Lesson
![]()
![]()
What's next? Now you can:
- Continue on in this trail to learn how to write some short programs for looking up an object and reading attributes from a directory service.
- Go to the The Basics
trail for more in-depth lessons on performing naming and directory operations using the JNDI.
![]() ![]() ![]() ![]() |
JNDI Overview |