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.