diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 16:27:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 16:27:37 +1200 |
commit | b2648b16bf063343e85c38eb8edf9e4e9255a33e (patch) | |
tree | 001e976ba32bb6fbc5b24d4aa7b9e74f7629406f /src | |
parent | 9baa5b779c418add77555bf0b6545dcd9b43eb04 (diff) | |
download | trackermap-server-b2648b16bf063343e85c38eb8edf9e4e9255a33e.tar.gz trackermap-server-b2648b16bf063343e85c38eb8edf9e4e9255a33e.tar.bz2 trackermap-server-b2648b16bf063343e85c38eb8edf9e4e9255a33e.zip |
Add pool size parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 4 |
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; } |