fixed https://github.com/hangum/TadpoleForDBTools/issues/1078
[Tadpole.git] / com.hangum.tadpole.commons.sql / src / com / hangum / tadpole / engine / config / TAJOConfig.xml
blobef7bcc3de45830e1fc48f82a7448c1ae5f2ebe33
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   Copyright (c) 2013 hangum.
4   All rights reserved. This program and the accompanying materials
5   are made available under the terms of the GNU Lesser Public License v2.1
6   which accompanies this distribution, and is available at
7   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
8   
9   Contributors:
10       hangum - initial API and implementation
11 -->
12 <!DOCTYPE sqlMapConfig      
13     PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"      
14     "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
16 <sqlMapConfig>
17         <!--  set setting options -->
18         <properties resource="com/hangum/tadpole/engine/config/commons/setting.propertis"/>
19         
20         <transactionManager type="JDBC">
21                 <dataSource type="DBCP">
22                         <property name="JDBC.Driver" value="org.apache.tajo.jdbc.TajoDriver" />
23                         <property name="JDBC.ConnectionURL" value="${JDBC.ConnectionURL}" />
24                         <property name="JDBC.Username" value="${JDBC.Username}" />
25                         <property name="JDBC.Password" value="${JDBC.Password}" />
27                         <!--OPTIONAL PROPERTIES BELOW -->
28                         <property name="Pool.MaximumActiveConnections" value="50" />
29                         <property name="Pool.MaximumIdleConnections" value="5" />
30                         <property name="Pool.MaximumWait" value="1000" />
31                                 <!--
32                                 Use of the validation query can be problematic. If you have
33                                 difficulty, try without it.
34                         -->
35                         <property name="Pool.ValidationQuery" value="show tables" />
36                         <property name="Pool.LogAbandoned" value="true" />
37                         <property name="Pool.RemoveAbandoned" value="true" />
38                         <property name="Pool.RemoveAbandonedTimeout" value="50000" />
40                 </dataSource>
41         </transactionManager>
43         <sqlMap resource="com/hangum/tadpole/engine/query/TAJOSQL.xml" />
44 </sqlMapConfig>