[jboss-svn-commits] JBL Code SVN: r6247 - labs/jbossesb/branches/JBESB_4_0_Beta1_maint/product/core/common/src/org/jboss/soa/esb/connection

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Sep 16 15:15:34 EDT 2006


Author: mohit309
Date: 2006-09-16 15:15:33 -0400 (Sat, 16 Sep 2006)
New Revision: 6247

Modified:
   labs/jbossesb/branches/JBESB_4_0_Beta1_maint/product/core/common/src/org/jboss/soa/esb/connection/ConnectionProperties.java
Log:
Changed logic of Min pool size to be set to max if min is not set by user

Modified: labs/jbossesb/branches/JBESB_4_0_Beta1_maint/product/core/common/src/org/jboss/soa/esb/connection/ConnectionProperties.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_Beta1_maint/product/core/common/src/org/jboss/soa/esb/connection/ConnectionProperties.java	2006-09-16 11:50:08 UTC (rev 6246)
+++ labs/jbossesb/branches/JBESB_4_0_Beta1_maint/product/core/common/src/org/jboss/soa/esb/connection/ConnectionProperties.java	2006-09-16 19:15:33 UTC (rev 6247)
@@ -82,8 +82,10 @@
         setConnectionPoolClass();
         setAutoCommit();
         setIsolationLevel();
+        //setMaxPool size should be called before min pool size because the user may have only set max size and is expecting the 
+        //min pool size to be the same.
+        setMaxPoolSize();
         setMinPoolSize();
-        setMaxPoolSize();
         setBlockingConnectionTime();
         setAbandonedConnectionTimeOut();
         setAbandonedConnectionCheckInterval();
@@ -140,6 +142,9 @@
         if (strPoolSize == null) {
             strPoolSize = System.getProperty(MIN_POOL_SIZE, DEFAULT_MIN_POOL_SIZE);
         }
+        if(strPoolSize == null && m_iMaxPoolSize!=0){
+        	strPoolSize = String.valueOf(m_iMaxPoolSize);
+        }
         this.m_iMinPoolSize = Integer.parseInt(strPoolSize);
     }
 




More information about the jboss-svn-commits mailing list