dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43989
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22320: dhis conf, supporting connection pool max size setting.
------------------------------------------------------------
revno: 22320
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2016-03-15 11:49:45 +0100
message:
dhis conf, supporting connection pool max size setting.
modified:
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java
dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/DefaultHibernateConfigurationProvider.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java'
--- dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java 2016-01-13 15:47:42 +0000
+++ dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java 2016-03-15 10:49:45 +0000
@@ -41,6 +41,7 @@
CONNECTION_USERNAME( "connection.username" ),
CONNECTION_PASSWORD( "connection.password" ),
CONNECTION_SCHEMA( "connection.schema" ),
+ CONNECTION_POOL_MAX_SIZE( "connection.pool.max_size" ),
LDAP_URL( "ldap.url", "ldaps://0:1" ),
LDAP_MANAGER_DN( "ldap.manager.dn" ),
LDAP_MANAGER_PASSWORD( "ldap.manager.password" ),
=== modified file 'dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/DefaultHibernateConfigurationProvider.java'
--- dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/DefaultHibernateConfigurationProvider.java 2016-01-14 23:23:54 +0000
+++ dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/DefaultHibernateConfigurationProvider.java 2016-03-15 10:49:45 +0000
@@ -215,6 +215,7 @@
putIfExists( properties, ConfigurationKey.CONNECTION_USERNAME.getKey(), "hibernate.connection.username" );
putIfExists( properties, ConfigurationKey.CONNECTION_PASSWORD.getKey(), "hibernate.connection.password" );
putIfExists( properties, ConfigurationKey.CONNECTION_SCHEMA.getKey(), "hibernate.hbm2ddl.auto" );
+ putIfExists( properties, ConfigurationKey.CONNECTION_POOL_MAX_SIZE.getKey(), "hibernate.c3p0.max_size" );
}
private void putIfExists( Properties properties, String from, String to )