|
Commons DBCP example source code file (test.jocl)
The Commons DBCP test.jocl source code
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<object class="org.apache.commons.dbcp.PoolableConnectionFactory" xmlns="http://apache.org/xml/xmlns/jakarta/commons/jocl">
<object class="org.apache.commons.dbcp.DriverConnectionFactory">
<object class="org.apache.commons.dbcp.TesterDriver"/>
<string value="jdbc:apache:commons:testdriver"/>
<object class="java.util.Properties" null="true"/>
</object>
<object class="org.apache.commons.pool.impl.GenericObjectPool">
<object class="org.apache.commons.pool.PoolableObjectFactory" null="true"/>
<int value="10"/>
<byte value="1"/>
<long value="2000"/>
<int value="10"/>
<boolean value="true"/>
<boolean value="true"/>
<long value="10000"/>
<int value="5"/>
<long value="5000"/>
<boolean value="true"/>
</object>
<object class="org.apache.commons.pool.impl.GenericKeyedObjectPoolFactory">
<object class="org.apache.commons.pool.KeyedPoolableObjectFactory" null="true"/>
<int value="10"/>
<byte value="1"/>
<long value="2000"/>
<int value="10"/>
<boolean value="true"/>
<boolean value="true"/>
<long value="10000"/>
<int value="5"/>
<long value="5000"/>
<boolean value="true"/>
</object>
<string value="SELECT COUNT(*) FROM DUAL"/>
<boolean value="false"/>
<boolean value="true"/>
</object>
Other Commons DBCP examples (source code examples)Here is a short list of links related to this Commons DBCP test.jocl source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.