Java Naming and Directory Interface (JNDI) is the standard API for accessing information in the enterprise name and directory.
Using Custom Resources
Using External JNDI Repositories and Resources