최신버전에 맞는 타겟플렛폼 설정.
[Tadpole.git] / com.hangum.tadpole.commons.sql / src / com / hangum / tadpole / engine / config / MariaDBConfig.xml
blob2428d6546267e9f68634823e0678a3dd2722b7b6
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.mariadb.jdbc.Driver" />
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="select 'TadpoleHub'" />
36                         <!-- 
37                                 TadpoleHub define value start
38                          -->
39                         <property name="initialSize" value="1" />
40                         <!--  커넥션 풀에서 커넥션 가져올때 유효성 검사 -->
41                         <property name="testOnBorrow" value="false" />
42                         <!--  커넥션풀에 커넥션 돌려줄때 유효성 검사 -->
43                         <property name="testOnReturn" value="false" />
44                         <!--  idle  상태의 커넥션 유효성 검사 -->
45                         <property name="testWhileIdle" value="true" />
46                         <!--  testWhileIdle가 true일때 idle 상태 유효성 채크 (3분에 한번씩 테스트 쿼리를 날린다.) -->
47                         <property name="timeBetweenEvictionRunsMillis" value="180000" />
48                         <!--  testWhileIdle가 true일때 idle 상태 유효성 채크해서 사용하지 않는 커넥션 제거한다. (10분 동안 연결이 없으면 커넥션을 삭제한다.) -->
49                         <property name="minEvictableIdleTimeMillis" value="600000" />
50                         <!-- 사용하지 않는 커넥션 테스트 여부 -->
51                         <property name="numTestsPerEvictionRun" value="5" />
52                         <!--사용하지 않는 커넥션 삭제여부  -->
53                         <property name="removeAbandonedTimeout" value="300" />
54                         <property name="removeAbandoned" value="false" />
55                         <!--  유효하지 않는 커넥션을 생성한 코드 위치 로그 생성 -->
56                         <property name="logAbandoned" value="false" />
57                         <!--  idel 한 상태에서 최소 커넥션유지 수 -->
58                         <property name="minIdle" value="0" />
59                         
60                         <property name="tdb.connectionInitSqls-0" value="${TDB.SPECIAL.INITIALSTRING.0}" />
61                 </dataSource>
62         </transactionManager>
64         <!--
65                 List the SQL Map XML files. They can be loaded from the classpath, as
66                 they are here (com.domain.data...)
67         -->
68         <sqlMap resource="com/hangum/tadpole/engine/query/MySQL.xml" />
69 </sqlMapConfig>