7.7. JNDI in more detail

As we have seen, carrying out a JNDI lookup is not difficult. However, in order to understand why JNDI configuration works the way it does, it is helpful to understand in more detail how JNDI works internally. If you only need to know the how of JNDI configuration, rather than the why, you could usefully skip directly to Section 7.8.

7.7.1. Principle of operation

Figure 7.5 shows the interaction between the various classes that are involved in a typical JNDI lookup. Of course, many more supporting classes may be involved in a practical implementation. The numbers in this section refer to the interaction numbers in the diagram.

Figure 7.5. Sequence of operations in a simple JNDI lookup. See text for details.

When ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.