Package org.apache.commons.dbcp.cpdsadapter

This package contains one public class which is a ConnectionPoolDataSource (CPDS) implementation that can be used to adapt older Driver based jdbc implementations.

See:
          Description

Class Summary
DriverAdapterCPDS An adapter for jdbc drivers that do not include an implementation of ConnectionPoolDataSource, but still include a DriverManager implementation.
 

Package org.apache.commons.dbcp.cpdsadapter Description

This package contains one public class which is a ConnectionPoolDataSource (CPDS) implementation that can be used to adapt older Driver based jdbc implementations. Below is an example of setting up the CPDS to be available via JNDI in the catalina servlet container.

In server.xml, the following would be added to the <Context> for your webapp:

factory org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS userroot password driver org.gjt.mm.mysql.Driver url jdbc:mysql://localhost:3306/bookstore ]]>

In web.xml. Note that elements must be given in the order of the dtd described in the servlet specification:

Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. jdbc/bookstoreCPDS org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS Container ]]>

Catalina deploys all objects configured similarly to above within the java:comp/env namespace.



Copyright © 2001 Apache Software Foundation. Documenation generated August 12 2002.