Previous | Next | Trail Map | Java Objects and the Directory | Contents

Reading Objects from the Directory

As you've seen in the Storing Objects (in the Java Objects and the Directory trail) lesson, there are different ways in which Java objects (or rather information about Java objects) are stored in the directory. In each of that lesson's examples, you also saw that once the object has been stored, you can simply use the Context.lookup()(in the API reference documentation) method to get a copy of the object back from the directory, regardless of what type of information was actually stored.

In addition to lookup(), there are two other ways in which you can get the objects back:

In all of these cases, object factories may be involved. A brief discussion of how object factories are used is included in the lookup section of this lesson. Object factories are discussed in detail in the Object Factories (in the Java Objects and the Directory trail) lesson.


Previous | Next | Trail Map | Java Objects and the Directory | Contents