OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | jotm-commits List | May 2004 Index

<--  Date Index  --> <--  Thread Index  -->

CVS update of jotm/src/main/org/objectweb/jotm (TransactionImpl.java)


    Date: Monday, May 3, 2004 @ 21:50:24
  Author: tonyortiz
    Path: /cvsroot/jotm/jotm/src/main/org/objectweb/jotm

Modified: TransactionImpl.java

help resolve problem in JDBC resource adapter


----------------------+
 TransactionImpl.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: jotm/src/main/org/objectweb/jotm/TransactionImpl.java
diff -u jotm/src/main/org/objectweb/jotm/TransactionImpl.java:1.29 
jotm/src/main/org/objectweb/jotm/TransactionImpl.java:1.30
--- jotm/src/main/org/objectweb/jotm/TransactionImpl.java:1.29  Sat Apr  3 
21:30:57 2004
+++ jotm/src/main/org/objectweb/jotm/TransactionImpl.java       Mon May  3 
21:50:24 2004
@@ -47,7 +47,7 @@
  * 02/06/18 Marek Prochazka - in timeoutExpired() removed code
  *          preventing deadlock by rolling back transaction
  * --------------------------------------------------------------------------
- * $Id: TransactionImpl.java,v 1.29 2004/04/03 19:30:57 tonyortiz Exp $
+ * $Id: TransactionImpl.java,v 1.30 2004/05/03 19:50:24 tonyortiz Exp $
  * --------------------------------------------------------------------------
  */
 package org.objectweb.jotm;
@@ -375,8 +375,10 @@
             throw new RollbackException();
         }
 
-        /// add to enlisted list
-        enlistedXARes.add(xares);
+        if (!enlistedXARes.contains(xares)) {
+           /// add to enlisted list
+           enlistedXARes.add(xares);
+        }
 
         int status = this.getStatus();
 



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.