KEYCLOAK-8494 Use c3p0 connection pool in testsuite
This commit is contained in:
parent
28b6e4dd5b
commit
531ee3a1be
3 changed files with 18 additions and 0 deletions
6
pom.xml
6
pom.xml
|
@ -406,6 +406,12 @@
|
||||||
<artifactId>hibernate-entitymanager</artifactId>
|
<artifactId>hibernate-entitymanager</artifactId>
|
||||||
<version>${hibernate.entitymanager.version}</version>
|
<version>${hibernate.entitymanager.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-c3p0</artifactId>
|
||||||
|
<version>${hibernate.entitymanager.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.freemarker</groupId>
|
<groupId>org.freemarker</groupId>
|
||||||
<artifactId>freemarker</artifactId>
|
<artifactId>freemarker</artifactId>
|
||||||
|
|
|
@ -142,6 +142,10 @@
|
||||||
<type>war</type>
|
<type>war</type>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-c3p0</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -185,6 +189,9 @@
|
||||||
<exclude>${exclude.cors.tests}</exclude>
|
<exclude>${exclude.cors.tests}</exclude>
|
||||||
<exclude>${exclude.HoK}</exclude>
|
<exclude>${exclude.HoK}</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<com.mchange.v2.c3p0.VMID>testsuiteVmId</com.mchange.v2.c3p0.VMID>
|
||||||
|
</systemPropertyVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
c3p0.minPoolSize=3
|
||||||
|
c3p0.maxPoolSize=30
|
||||||
|
c3p0.forceIgnoreUnresolvedTransactions=true
|
||||||
|
c3p0.unreturnedConnectionTimeout=60
|
||||||
|
c3p0.debugUnreturnedConnectionStackTraces=true
|
Loading…
Reference in a new issue