You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2012/06/01 09:14:00 UTC

svn commit: r1345001 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java

Author: jacopoc
Date: Fri Jun  1 07:13:59 2012
New Revision: 1345001

URL: http://svn.apache.org/viewvc?rev=1345001&view=rev
Log:
Fixed lock that was set to the wrong class (this was probably caused by a copy and paste error).
 

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java?rev=1345001&r1=1345000&r2=1345001&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java Fri Jun  1 07:13:59 2012
@@ -91,7 +91,7 @@ public class ConnectionFactory {
 
     public static ConnectionFactoryInterface getManagedConnectionFactory() {
         if (_factory == null) { // don't want to block here
-            synchronized (TransactionFactory.class) {
+            synchronized (ConnectionFactory.class) {
                 // must check if null again as one of the blocked threads can still enter
                 if (_factory == null) {
                     try {