Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
• A data source enables a web app to interact with a database.
• In web apps that receive many requests, it’s inefficient to create separate database connections for each request. Instead, you should set up a connection pool (p. 27-4) to allow the server to manage a limited number of database connections and share them among requests.
• To connect to the database from a web app, you configure a data source name (p. 27-6) that will be used to locate the database. The data source name is associated with a connection pool that manages the connections to the database.
• JNDI (Java Naming and Directory Interface) is a technology for locating application components (such as databases) in a distributed application (such as a multitier web application).