Chapter 11: Integrating the Jakarta Commons Database Connection Pool (DBCP)

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

What Is the Commons DBCP?

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 > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net