1 <?xml version="1.0" encoding="UTF-8" ?>
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
10 hangum - initial API and implementation
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">
17 <!-- set setting options -->
18 <properties resource="com/hangum/tadpole/engine/config/commons/setting.propertis"/>
20 <transactionManager type="JDBC">
21 <dataSource type="DBCP">
22 <property name="JDBC.Driver" value="com.tmax.tibero.jdbc.TbDriver" />
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" />
32 Use of the validation query can be problematic. If you have
33 difficulty, try without it.
35 <property name="Pool.ValidationQuery" value="select 'TadpoleHub' from dual" />
38 TadpoleHub define value start
40 <property name="initialSize" value="1" />
41 <!-- 커넥션 풀에서 커넥션 가져올때 유효성 검사 -->
42 <property name="testOnBorrow" value="false" />
43 <!-- 커넥션풀에 커넥션 돌려줄때 유효성 검사 -->
44 <property name="testOnReturn" value="false" />
45 <!-- idle 상태의 커넥션 유효성 검사 -->
46 <property name="testWhileIdle" value="true" />
47 <!-- testWhileIdle가 true일때 idle 상태 유효성 채크 (3분에 한번씩 테스트 쿼리를 날린다.) -->
48 <property name="timeBetweenEvictionRunsMillis" value="180000" />
49 <!-- testWhileIdle가 true일때 idle 상태 유효성 채크해서 사용하지 않는 커넥션 제거한다. (10분 동안 연결이 없으면 커넥션을 삭제한다.) -->
50 <property name="minEvictableIdleTimeMillis" value="600000" />
51 <!-- 사용하지 않는 커넥션 테스트 여부 -->
52 <property name="numTestsPerEvictionRun" value="5" />
53 <!--사용하지 않는 커넥션 삭제여부 -->
54 <property name="removeAbandonedTimeout" value="300" />
55 <property name="removeAbandoned" value="false" />
56 <!-- 유효하지 않는 커넥션을 생성한 코드 위치 로그 생성 -->
57 <property name="logAbandoned" value="false" />
58 <!-- idel 한 상태에서 최소 커넥션유지 수 -->
59 <property name="minIdle" value="0" />
64 <sqlMap resource="com/hangum/tadpole/engine/query/TiberoSQL.xml" />