svn commit: r663349 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java

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

svn commit: r663349 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java

jaz-3
Author: jaz
Date: Wed Jun  4 12:14:41 2008
New Revision: 663349

URL: http://svn.apache.org/viewvc?rev=663349&view=rev
Log:
changed old usage of tryGenericConnectionSources() to getManagedConnection()

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java?rev=663349&r1=663348&r2=663349&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java Wed Jun  4 12:14:41 2008
@@ -147,7 +147,7 @@
         }
         
         if (datasourceInfo.inlineJdbcElement != null) {
-            Connection otherCon = ConnectionFactory.tryGenericConnectionSources(helperName, datasourceInfo.inlineJdbcElement);
+            Connection otherCon = ConnectionFactory.getManagedConnection(helperName, datasourceInfo.inlineJdbcElement);
             return TransactionFactory.getCursorConnection(helperName, otherCon);
         } else {
             //no real need to print an error here
@@ -196,7 +196,7 @@
                 if (ds != null) {
                     if (Debug.verboseOn()) Debug.logVerbose("Got a Datasource object.", module);
                     dsCache.put(jndiName, ds);
-                    Connection con = null;
+                    Connection con;
 
                     if (ds instanceof XADataSource) {
                         if (Debug.infoOn()) Debug.logInfo("Got XADataSource for name " + jndiName, module);