Project

General

Profile

« Previous | Next » 

Revision fd9ce8b9

Added by Andreas Kohlbecker about 13 years ago

fixing #2243 "c3p0 connection pool is loosing connection over night"

View differences:

cdmlib-persistence/src/main/resources/c3p0-config.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<c3p0-config>
3
	<!--
4
		for a reference please refer to
5
		http://www.mchange.com/projects/c3p0/index.htm
6
	-->
3 7
	<default-config>
4
		<property name="idleConnectionTestPeriod">120</property>
5
	</default-config>  
6
</c3p0-config> 
8
		<!--
9
			idleConnectionTestPeriod: if this is a number greater than 0, c3p0
10
			will test all idle, pooled but unchecked-out connections, every this
11
			number of seconds
12
		-->
13
		<property name="idleConnectionTestPeriod">60</property>
14
		<!--
15
			automaticTestTable: 
16
			If provided, c3p0 will create an
17
			empty table of the specified name, and use queries against that table
18
			to test the Connection. If automaticTestTable is provided, c3p0 will
19
			generate its own test query, therefore any preferredTestQuery set
20
			will be ignored. You should not work with the named table after c3p0
21
			creates it; it should be strictly for c3p0's use in testing your
22
			Connection.
23
		-->
24
		<property name="automaticTestTable">_c3p0ConnectionTest</property>
25
		
26
	</default-config>
27
</c3p0-config>

Also available in: Unified diff