Chapter 14. JSP and a JDBC Connection Pool Bean

In this chapter, we are going to remedy the inefficiencies that we encountered in Chapter 4, "JDBC and JSP Concepts." Instead of opening a connection to the database with every request, as we did in Chapter 4, we are going to create a pool of connections to the database. This will give us access to a collection of already opened database connections, which will reduce the time it takes to service a request and let us service n number of requests at once.

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.