SQL Connections
Use JNDI for server-based management of connections and for better security
Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and resources (in the form of Java objects) via a name. JNDI for SQL Connections is implemented by the Java Application Server container and provides the ability to define a SQL Connection, including credentials, server-side within the Java Application Server container. JNDI gives administrators the ability to manage the SQL Connection information completely from the server and, in this way, sensitive connection information is never passed across the wire thus improving security.