Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Summary

Section 27.2.1 Setting Up the Database

• 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).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial