In this chapter, you saw JDBC connectivity in the context of Tomcat. The most obvious interaction is the need of Web applications to connect to relational database sources.
I discussed Java’s support for accessing relational database management systems (RDBMSs) in the form of JDBC. I covered the JDBC version evolution, and I talked briefly about the different types of JDBC drivers that are available.
Next, you saw the recommended way of providing a JDBC data source to Web applications, which involved the configuration of JNDI resources in the Tomcat configuration file. In addition, Tomcat also provides a database connection pooling service through the Jakarta Commons DBCP project.