JNDI - Java Naming and Directory Interface

JNDI enables a Java program or JSP page to reference resources specified in or outside the application.

JNDI names are specified as a URI. They point to anything from simple strings to complex data structures such as a JDBC data source.

For example, here is a JSP <sql:query> tag that uses JNDI to access a data source. The data source object has a JNDI address of java:comp/env/jdbc/mydatabase. In JSP, this can be refered to simply as jdbc/mydatabase.