geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1038927 - /geronimo/daytrader/branches/2.1/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
Date Thu, 25 Nov 2010 05:52:43 GMT
Author: xiaming
Date: Thu Nov 25 05:52:43 2010
New Revision: 1038927

URL: http://svn.apache.org/viewvc?rev=1038927&view=rev
Log:
DAYTRADER-83 fix pingservlet2session2jdbc failure

Modified:
    geronimo/daytrader/branches/2.1/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java

Modified: geronimo/daytrader/branches/2.1/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/2.1/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java?rev=1038927&r1=1038926&r2=1038927&view=diff
==============================================================================
--- geronimo/daytrader/branches/2.1/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
(original)
+++ geronimo/daytrader/branches/2.1/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
Thu Nov 25 05:52:43 2010
@@ -2020,7 +2020,9 @@ public class TradeDirect implements Trad
 		if (datasource == null)
 			getDataSource();
 		conn = datasource.getConnection();
-		conn.setAutoCommit(false);
+		if (!this.inSession) {
+			conn.setAutoCommit(false);
+		}
 		if (Log.doTrace()) {
 			synchronized (lock) {
 				connCount++;



Mime
View raw message