[jboss-cvs] JBossAS SVN: r60788 - branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 22 01:21:47 EST 2007


Author: weston.price at jboss.com
Date: 2007-02-22 01:21:47 -0500 (Thu, 22 Feb 2007)
New Revision: 60788

Modified:
   branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java
Log:
[JBAS-4121] Added check in synchronized block to wait if the pool
is empty rather than waiting by default. 

Modified: branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java	2007-02-22 06:13:49 UTC (rev 60787)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java	2007-02-22 06:21:47 UTC (rev 60788)
@@ -82,7 +82,11 @@
          {
             synchronized (pools)
             {
-               pools.wait();                        
+               while(pools.isEmpty())
+               {
+                  pools.wait();                        
+                  
+               }
             }
          }
          catch (InterruptedException ie)




More information about the jboss-cvs-commits mailing list