1、外文原文 APPENDIX APPENDIX B The Java Naming and Directory Interface (JNDI) is an essential component of the Java 2 Platform, Enterprise Edition (J2EE). JNDI adds value to your enterprise deployments by providing a standard interface for locating users, machines, networks, objects, and services. For exa
2、mple, you can use the JNDI to locate a printer on your corporate Intranet. You can also use it to locate a Java object or to connect with a database. In EJB, JNDI is used extensively for the purposes of locating objects across an enterprise deployment. This appendix will explore the various facets o
3、f JNDI, including why it was created, what its useful for, and how to use it. After reading this appendix, youll be armed with knowledge about naming, directories and how they are accessed from Java. Youll also see how JNDI is used in the EJB world. Well begin with a quick overview of naming and dir
4、ectories. From there, well go into the specifics of the JNDI package, and we will walk through several examples. Finally, well wrap up with thoughts on how EJB and JNDI are used together. Youll notice that this appendix goes into a lot of detail about JNDI, especially for an EJB book. And rightfully so! JNDI is a vital part of J2EE, and it is used in EJB, RMI, JDBC, and more. It is the standard way of looking things up over the network. Because JNDI is so ubiquitous in J2EE, its importan