[prev in list] [next in list] [prev in thread] [next in thread]
List: slide-dev
Subject: cvs commit: jakarta-slide/src/share/org/apache/slide/transaction SlideTransaction.java
From: juergen () apache ! org
Date: 2001-01-23 17:33:53
[Download RAW message or body]
juergen 01/01/23 09:33:53
Modified: src/share/org/apache/slide/transaction SlideTransaction.java
Log:
removed and modified some printlns only.
Revision Changes Path
1.7 +15 -16 \
jakarta-slide/src/share/org/apache/slide/transaction/SlideTransaction.java
Index: SlideTransaction.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/transaction/SlideTransaction.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SlideTransaction.java 2001/01/20 20:01:31 1.6
+++ SlideTransaction.java 2001/01/23 17:33:47 1.7
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/transaction/SlideTransaction.java,v \
1.6 2001/01/20 20:01:31 remm Exp $
- * $Revision: 1.6 $
- * $Date: 2001/01/20 20:01:31 $
+ * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/transaction/SlideTransaction.java,v \
1.7 2001/01/23 17:33:47 juergen Exp $ + * $Revision: 1.7 $
+ * $Date: 2001/01/23 17:33:47 $
*
* ====================================================================
*
@@ -96,7 +96,7 @@
* JTA Transaction implementation.
*
* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public final class SlideTransaction implements Transaction {
@@ -113,8 +113,8 @@
currentTransactionNumber = globalCreatedTransactions;
currentThreadName = Thread.currentThread().getName();
xid = new SlideXid
- ((currentThreadName + "-" + System.currentTimeMillis() + "-"
- + currentTransactionNumber).getBytes(),
+ ((currentThreadName + "-" + System.currentTimeMillis() + "-"
+ + currentTransactionNumber).getBytes(),
0, new byte[0]);
}
@@ -226,7 +226,7 @@
HeuristicRollbackException, SecurityException, IllegalStateException,
SystemException {
-System.out.println(Thread.currentThread().getName() + " COMMIT ");
+//System.out.println(this + " COMMIT ");
// Check status ACTIVE
@@ -266,6 +266,7 @@
} catch (XAException e) {
// Adding the exception to the error code list
System.out.println("Exception(" + this + ") = " + xid + " \
Code: " + e.errorCode); + e.printStackTrace();
exceptions.addElement(e);
fail = true;
status = Status.STATUS_MARKED_ROLLBACK;
@@ -374,8 +375,7 @@
public boolean delistResource(XAResource xaRes, int flag)
throws IllegalStateException, SystemException {
-System.out.println(Thread.currentThread().getName() + " DELIST " + xaRes);
-System.out.println("Try delist(" + this + ") = " + xaRes);
+//System.out.println(this + " DELIST " + xaRes);
// Check status ACTIVE
if (status != Status.STATUS_ACTIVE)
@@ -405,7 +405,7 @@
if (flag == XAResource.TMSUSPEND)
suspendedResources.put(xaRes, xid);
-System.out.println("Delisted ok(" + this + ") = " + xaRes + " xid: " + xid);
+//System.out.println("Delisted ok(" + this + ") = " + xaRes + " xid: " + xid);
return true;
@@ -428,7 +428,7 @@
public boolean enlistResource(XAResource xaRes)
throws RollbackException, IllegalStateException, SystemException {
-System.out.println(Thread.currentThread().getName() + " ENLIST " + xaRes);
+//System.out.println(this + " ENLIST " + xaRes);
// Check status ACTIVE
@@ -463,7 +463,7 @@
}
branchXid = this.xid.newBranch(branchCounter++);
-System.out.println(Thread.currentThread().getName() + " Creating new branch for " \
+ xaRes); +//System.out.println(this + " Creating new branch for " + xaRes);
} else {
alreadyEnlisted = true;
@@ -476,12 +476,11 @@
}
try {
-System.out.println("Starting(" + this + ") = " + xaRes + " Branch: " + branchXid + \
" Flag: " + flag); +//System.out.println("Starting(" + this + ") = " + xaRes + " \
Branch: " + branchXid + " Flag: " + flag);
xaRes.start(branchXid, flag);
} catch (XAException e) {
-System.out.println("Enlist error(" + this + ") = " + e.errorCode +
-" " + xaRes+ " Branch: " + branchXid + " Flag: " + flag);
+System.out.println("Enlist error(" + this + ") = " + e.errorCode + " " + xaRes+ " \
Branch: " + branchXid + " Flag: " + flag); return false;
}
@@ -508,7 +507,7 @@
public void rollback()
throws SecurityException, IllegalStateException, SystemException {
-System.out.println(Thread.currentThread().getName() + " ROLLBACK ");
+//System.out.println(this + " ROLLBACK ");
// Check status ACTIVE
if (status != Status.STATUS_ACTIVE)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic