From 83c2c273057601788ad7e689d65ed3b8f92a246c Mon Sep 17 00:00:00 2001
From: brinn <brinn>
Date: Sun, 23 Aug 2009 10:03:58 +0000
Subject: [PATCH] fix: dead lock when using the new sample browsing code

SVN: 12236
---
 .../cisd/dbmigration/DatabaseConfigurationContext.java         | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java
index 13334e65c5b..c400a274e29 100644
--- a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java
+++ b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DatabaseConfigurationContext.java
@@ -38,6 +38,8 @@ public class DatabaseConfigurationContext implements DisposableBean
     private static final class BasicDataSourceFactory implements IDataSourceFactory
     {
 
+        private final int MAX_ACTIVE_NO_LIMIT = -1;
+        
         //
         // IDataSourceFactory
         //
@@ -52,6 +54,7 @@ public class DatabaseConfigurationContext implements DisposableBean
             dataSource.setPassword(password);
             dataSource.setMinIdle(0);
             dataSource.setMaxIdle(0);
+            dataSource.setMaxActive(MAX_ACTIVE_NO_LIMIT);
             return dataSource;
         }
     }
-- 
GitLab