Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug with creating a lot of connections to DB(JFG-288)

  • Loading branch information...
commit 8ab43b9fb68330c53b6964f1663630499a027300 1 parent 6f1c248
@kgribov kgribov authored
View
2  chassis/configuration/configuration/common/storage.rdb.client.conf.xml
@@ -32,7 +32,7 @@
<property name="dataSource" ref="dataSource"/>
</bean>
- <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
+ <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="${chassis.storage.rdb.client.driver}" />
<property name="url" value="${chassis.storage.rdb.client.url}" />
<property name="username" value="${chassis.storage.rdb.username}" />
View
5 chassis/core/pom.xml
@@ -60,6 +60,11 @@
</dependency>
<dependency>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>jboss</groupId>
<artifactId>jboss-serialization</artifactId>
</dependency>
View
6 pom.xml
@@ -186,6 +186,12 @@
<!-- Third-party dependencies -->
<dependency>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+
+ <dependency>
<groupId>jboss</groupId>
<artifactId>jboss-serialization</artifactId>
<version>4.2.2.GA</version>
Please sign in to comment.
Something went wrong with that request. Please try again.