/
MSSQLConfig.xml
53 lines (45 loc) · 1.99 KB
/
MSSQLConfig.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (c) 2013 hangum.
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Lesser Public License v2.1
which accompanies this distribution, and is available at
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Contributors:
hangum - initial API and implementation
-->
<!DOCTYPE sqlMapConfig
PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<!-- set setting options -->
<properties resource="com/hangum/tadpole/engine/config/commons/setting.propertis"/>
<transactionManager type="JDBC">
<dataSource type="DBCP">
<property name="JDBC.Driver" value="net.sourceforge.jtds.jdbc.Driver" />
<property name="JDBC.ConnectionURL" value="${JDBC.ConnectionURL}" />
<property name="JDBC.Username" value="${JDBC.Username}" />
<property name="JDBC.Password" value="${JDBC.Password}" />
<property name="Pool.TimeToWait" value="500"/>
<!--OPTIONAL PROPERTIES BELOW -->
<property name="Pool.MaximumActiveConnections" value="50" />
<property name="Pool.MaximumIdleConnections" value="5" />
<property name="Pool.MaximumWait" value="1000" />
<!--
Use of the validation query can be problematic. If you have
difficulty, try without it.
-->
<property name="Pool.ValidationQuery" value="select getdate()" />
<property name="Pool.testWhileIdle" value="true" />
<property name="Pool.timeBetweenEvictionRunsMillis" value="7200000" />
<property name="Pool.LogAbandoned" value="true" />
<property name="Pool.RemoveAbandoned" value="true" />
<property name="Pool.RemoveAbandonedTimeout" value="50000" />
</dataSource>
</transactionManager>
<!--
List the SQL Map XML files. They can be loaded from the classpath, as
they are here (com.domain.data...)
-->
<sqlMap resource="com/hangum/tadpole/engine/query/MSSQLSQL.xml" />
</sqlMapConfig>