if (importedTransaction.activated()) try { importedTransaction.doRollback(); } catch (HeuristicCommitException e) { throw Log.log.heuristicCommitXa(XAException.XA_HEURCOM, e);
public void beforeCompletion() throws XAException { final Transaction transaction = this.transaction; if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } final ImportedTransaction importedTransaction = (ImportedTransaction) transaction; try { if (! importedTransaction.doBeforeCompletion()) { throw new XAException(XAException.XAER_RMERR); } } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }
public void forget() throws XAException { final Transaction transaction = this.transaction; if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } final ImportedTransaction importedTransaction = (ImportedTransaction) transaction; try { importedTransaction.doForget(); } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }
private XAException initializeSuppressed(final XAException ex, final ImportedTransaction transaction) { if(ex != null && transaction.supportsDeferredThrowables()) { for(Throwable suppressedThrowable: transaction.getDeferredThrowables()) { ex.addSuppressed(suppressedThrowable); } } return ex; } }
final int tpo = importedTransaction.doPrepare(); switch (tpo) { case PREPARE_READONLY: importedTransaction.doRollback(); } catch (HeuristicCommitException | HeuristicMixedException | HeuristicRollbackException | SystemException e) {
try { if (onePhase) { importedTransaction.doOnePhaseCommit(); } else { if (! importedTransaction.doCommit()) { dropLocal(importedTransaction); ext.doRecover(null, null);
private XAException initializeSuppressed(final XAException ex, final ImportedTransaction transaction) { if(ex != null && transaction.supportsDeferredThrowables()) { for(Throwable suppressedThrowable: transaction.getDeferredThrowables()) { ex.addSuppressed(suppressedThrowable); } } return ex; } }
final int tpo = importedTransaction.doPrepare(); switch (tpo) { case PREPARE_READONLY: importedTransaction.doRollback(); } catch (HeuristicCommitException | HeuristicMixedException | HeuristicRollbackException | SystemException e) {
try { if (onePhase) { importedTransaction.doOnePhaseCommit(); } else { if (! importedTransaction.doCommit()) { dropLocal(importedTransaction); ext.doRecover(null, null);
private XAException initializeSuppressed(final XAException ex, final ImportedTransaction transaction) { if(ex != null && transaction.supportsDeferredThrowables()) { for(Throwable suppressedThrowable: transaction.getDeferredThrowables()) { ex.addSuppressed(suppressedThrowable); } } return ex; } }
final int tpo = importedTransaction.doPrepare(); switch (tpo) { case PREPARE_READONLY: importedTransaction.doRollback(); } catch (HeuristicCommitException | HeuristicMixedException | HeuristicRollbackException | SystemException e) {
if (importedTransaction.activated()) try { importedTransaction.doRollback(); } catch (HeuristicCommitException e) { throw Log.log.heuristicCommitXa(XAException.XA_HEURCOM, e);
try { if (onePhase) { importedTransaction.doOnePhaseCommit(); } else { if (! importedTransaction.doCommit()) { dropLocal(importedTransaction); ext.doRecover(null, null);
public void forget() throws XAException { final Transaction transaction = this.transaction; if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } final ImportedTransaction importedTransaction = (ImportedTransaction) transaction; try { importedTransaction.doForget(); } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }
public void beforeCompletion() throws XAException { final Transaction transaction = this.transaction; if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } final ImportedTransaction importedTransaction = (ImportedTransaction) transaction; try { if (! importedTransaction.doBeforeCompletion()) { throw new XAException(XAException.XAER_RMERR); } } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }
if (importedTransaction.activated()) try { importedTransaction.doRollback(); } catch (HeuristicCommitException e) { throw Log.log.heuristicCommitXa(XAException.XA_HEURCOM, e);
public void forget() throws XAException { final Transaction transaction = this.transaction; if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } final ImportedTransaction importedTransaction = (ImportedTransaction) transaction; try { importedTransaction.doForget(); } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }
public void beforeCompletion() throws XAException { final Transaction transaction = this.transaction; if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } final ImportedTransaction importedTransaction = (ImportedTransaction) transaction; try { if (! importedTransaction.doBeforeCompletion()) { throw new XAException(XAException.XAER_RMERR); } } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }