<Context path="/quickstart" docBase="quickstart"
<Resource name="jdbc/quickstart" scope="Shareable" type="javax.sql.DataSource"/
<ResourceParams name="jdbc/quickstart"
<parameter
<namefactory</name
<valueorg.apache.commons.dbcp.BasicDataSourceFactory</value
</parameter
<!-- DBCP database connection settings --
<parameter
<nameurl</name
<valuejdbc:postgresql://localhost/quickstart</value
</parameter
<parameter
<namedriverClassName</name<valueorg.postgresql.Driver</value
</parameter
<parameter
<nameusername</name
<valuequickstart</value
</parameter
<parameter
<namepassword</name
<valuesecret</value
</parameter
<!-- DBCP connection pooling options --
<parameter
<namemaxWait</name
<value3000</value
</parameter
<parameter
<namemaxIdle</name
<value100</value
</parameter
<parameter
<namemaxActive</name
<value10</value
</parameter
</ResourceParams
</Context