The Resource is defined as follows in the server.xml file:
<Context path="/myapp" docBase="myapp" debug="0"
reloadable="true"
crossContext="true">
<Resource name="jdbc/myserver" auth="Container"
type="javax.sql.DataSource" />
<ResourceParams name="jdbc/myserver">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!--
Maximum number of dB connections in pool. Make
sure you configure
your mysqld max_connections large enough to
handle all of your db
connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<!--
Maximum number of idle dB connections to retain
in pool. Set to 0
for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<!--
The following 3 parameters are set to prevent DB
connection pool
leaks
-->
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAbandonedTimeout</name>
<value>60</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
<!--
Maximum time to wait for a dB connection to
become available in
ms, in this example 10 seconds. An Exception is
thrown if this
timeout is exceeded. Set to -1 to wait
indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
</ResourceParams>
</Context>
On Tue, Mar 9, 2010 at 12:07 PM, Caldarale, Charles R <
[email protected]> wrote:
> > From: Dhiren Bhatia [mailto:[email protected]]
> > Subject: Re: Commons DBCP in Tomcat 6.x
> >
> > Why is it looking for
> > org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory?
>
> For us to answer that, you need to pay attention to Konstantin's question:
>
> > > -----Original Message-----
> > > From: Konstantin Kolinko [mailto:[email protected]]
> > > Subject: Re: Commons DBCP in Tomcat 6.x
> > >
> > > 1. How is your <Resource> is defined. Please show us
> > > (remove any passwords).
> > > Note, that you have to specify className="..." explicitly.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>