| < Day Day Up > |
|
In this chapter, we discuss connecting your Struts application to a database. The tool that we use to connect to our database is the Jakarta Commons Database Connection Pool (DBCP). This chapter is the closest to a Model discussion you'll find in this book.
The Commons project is a Jakarta-managed project introduced to create and manage a collection of reusable Java objects. It currently encompasses about 30 sub-projects, ranging from logging to object validators.
The focus of this chapter is the Database Connection Pool sub-project. The goal of this sub-project is to provide a reusable JDBC DataSource that can help you manage all of your database connections. It is an extremely useful component that can be used either in a stand-alone fashion or as a DataSource integrated into other Jakarta projects, like Struts.
| < Day Day Up > |
|