diff --git a/libreplan-business/pom.xml b/libreplan-business/pom.xml
index dd6e64c0d..4e12400ad 100644
--- a/libreplan-business/pom.xml
+++ b/libreplan-business/pom.xml
@@ -32,6 +32,11 @@
junit
junit
+
+
+ com.jolbox
+ bonecp
+
org.springframework
diff --git a/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml b/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml
index 3b48f8430..a28faa52a 100644
--- a/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml
+++ b/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml
@@ -7,10 +7,17 @@
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
+
+
+ class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy"
+ p:targetDataSource-ref="dataSourceReal" />
junit
junit
+
+
+ com.jolbox
+ bonecp
+
org.hibernate
hibernate-validator
diff --git a/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml b/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml
index 7cfe39394..3c630e2f9 100644
--- a/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml
+++ b/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml
@@ -7,10 +7,17 @@
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
+
+
+ class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy"
+ p:targetDataSource-ref="dataSourceReal" />
diff --git a/pom.xml b/pom.xml
index d6e7274af..ccea5be21 100644
--- a/pom.xml
+++ b/pom.xml
@@ -115,9 +115,9 @@
- postgresql
+ org.postgresql
postgresql
- 8.3-603.jdbc4
+ 9.2-1003-jdbc4
org.postgresql.Driver
jdbc:postgresql://localhost/libreplan${libreplan.mode}
@@ -263,6 +263,13 @@
4.4
test
+
+
+ com.jolbox
+ bonecp
+ 0.7.1.RELEASE
+ test
+
@@ -982,11 +989,33 @@
-
- ${jdbcDriver.groupId}
- ${jdbcDriver.artifactId}
- ${jdbcDriver.version}
-
+
+ ${jdbcDriver.groupId}
+ ${jdbcDriver.artifactId}
+ ${jdbcDriver.version}
+
+
+
+ com.jolbox
+ bonecp
+ 0.7.1.RELEASE
+
+
+
+ org.slf4j
+ slf4j-api
+ 1.5.5
+
+
+ org.slf4j
+ slf4j-simple
+ 1.5.5
+
+
+ com.google.guava
+ guava
+ 14.0.1
+
diff --git a/src/main/jetty/jetty-env.xml b/src/main/jetty/jetty-env.xml
index 9371c774c..4a3d6ca71 100644
--- a/src/main/jetty/jetty-env.xml
+++ b/src/main/jetty/jetty-env.xml
@@ -6,11 +6,17 @@
${dataSource.jndiName}
-
- ${jdbcDriver.className}
- ${dataSource.url}
+
+ ${jdbcDriver.className}
+ ${dataSource.url}
${dataSource.user}
${dataSource.password}
+
+ 3
+ 5
+ 100
+ 5
+ 30