Summary

The JNDI package is a key package to J2EE. A J2EE-compliant application server must provide a naming service. That naming service is used to access EJB components and the J2EE resources residing in the application server. Access to all of the resources of the EJB application server is through the JNDI API.

As we saw in this chapter, access to a JNDI naming service is relatively simple, involving just a few calls. More complex operations, such as binding objects into the naming service and accessing directory servers, were also demonstrated in this chapter but are used much less frequently.

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.