Previous | Next | Trail Map | Getting Started | Naming and Directory Concepts

Directory-Enabled Java Applications

Directory service is a vital component of network computing. By using a directory service, you can simplify applications and their administration by centralizing the storage of shared information. As the use of the Java programming language to write practical applications in a network environment increases, the ability to access directory services will become essential.

Traditional Use of the Directory

A directory-enabled application is an application that uses a naming or directory service. Directory-enabled Java applications and applets, like any other program running on the network, can use the directory in the traditional way, that is, to store and retrieve attributes of directory objects. A Java mail client program, for example, can use the directory as an address book for retrieving the addresses of mail recipients. A Java mail transfer agent program can use it to retrieve mail routing information. And a Java calendar program can use it to retrieve user preference settings.

Applications can share the common infrastructure provided by the directory. This sharing makes applications that are deployed across the system, and even the network, more coherent and manageable. For example, printer configuration and mail routing information can be stored in the directory so that it can be replicated and distributed for use by all printer-related and mail-related applications and services.

The Directory as an Object Store

In addition to using the directory in the traditional way, Java applications can also use it as a repository for Java objects, that is to store and retrieve Java objects. For example, a Java print client program should be able to look up a printer object from the directory and send a data stream to the printer object for printing.


Previous | Next | Trail Map | Getting Started | Naming and Directory Concepts