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 2008/06/04 21:14:42 UTC
svn commit: r663349 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/transaction/JNDIFactory.java
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);