7677787980818283848586
try { txnLog.begin(xid); } catch (LogException e) { status = Status.STATUS_MARKED_ROLLBACK; SystemException ex = new SystemException("Error logging begin; transaction marked for roll back)"); ex.initCause(e); throw ex; } status = Status.STATUS_ACTIVE; }
161162163164165166167168169170171
re.initCause(e.getCause()); throw re; } else { SystemException se = new SystemException( "Unable to commit transaction: XA_ERR=" + e.errorCode); se.initCause(e.getCause()); throw se; } } }
196197198199200201202203204205206
status = Status.STATUS_ROLLEDBACK; } catch (XAException e) { SystemException se = new SystemException( "Unable to rollback transaction: XA_ERR=" + e.errorCode); se.initCause(e.getCause()); throw se; } } /**
220221222223224225226227228229230
try { xares.setTransactionTimeout(seconds); } catch (XAException e) { SystemException se = new SystemException( "Unable to set the TransactionTiomeout: XA_ERR=" + e.errorCode); se.initCause(e.getCause()); throw se; } }
7071727374757677787980
153154155156157158159160161162163
188189190191192193194195196197198
212213214215216217218219220221222
553554555556557558559560561562563
failedToEnlist, this.currentTx)); } else { SystemException e = new SystemException(error); e.initCause(enlistError); throw e; } } if (!enlisted) {
878879880881882883884885886887888
if (enlistError == FAILED_TO_ENLIST) throw new SystemException(FAILED_TO_ENLIST + " tx=" + currentTx); else { SystemException e = new SystemException(error); e.initCause(enlistError); throw e; } } if (enlisted == false) {