You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2004/01/04 02:29:09 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/pooling ByPassConnection.java
arminw 2004/01/03 17:29:09
Modified: src/java/org/apache/ojb/broker/util/pooling
ByPassConnection.java
Log:
ignore rollback() method calls in managed environments too. This should be
done only by the AppServer/container.
Revision Changes Path
1.7 +7 -1 db-ojb/src/java/org/apache/ojb/broker/util/pooling/ByPassConnection.java
Index: ByPassConnection.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/pooling/ByPassConnection.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ByPassConnection.java 4 Dec 2002 00:00:50 -0000 1.6
+++ ByPassConnection.java 4 Jan 2004 01:29:09 -0000 1.7
@@ -60,6 +60,12 @@
*/
public void rollback() throws SQLException
{
- super.rollback();
+ /*
+ arminw:
+ rollback of the connection should be done by the AppServer
+ so we ignore this call too. in beans user should use ctx.setRollbackOnly
+ method
+ */
+ // super.rollback();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org