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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jacopoc
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 {