aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 16:27:37 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 16:27:37 +1200
commitb2648b16bf063343e85c38eb8edf9e4e9255a33e (patch)
tree001e976ba32bb6fbc5b24d4aa7b9e74f7629406f /src/org/traccar
parent9baa5b779c418add77555bf0b6545dcd9b43eb04 (diff)
downloadtrackermap-server-b2648b16bf063343e85c38eb8edf9e4e9255a33e.tar.gz
trackermap-server-b2648b16bf063343e85c38eb8edf9e4e9255a33e.tar.bz2
trackermap-server-b2648b16bf063343e85c38eb8edf9e4e9255a33e.zip
Add pool size parameter
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/DataManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index a075b773f..d1c10ec87 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -106,6 +106,10 @@ public class DataManager {
ds.setPassword(properties.getProperty("database.password"));
ds.setIdleConnectionTestPeriod(600);
ds.setTestConnectionOnCheckin(true);
+ String maxPoolSize = properties.getProperty("database.maxPoolSize");
+ if (maxPoolSize != null) {
+ ds.setMaxPoolSize(Integer.valueOf(maxPoolSize));
+ }
dataSource = ds;
}