263264265266267268269270271272273
TransactionImple tx = TxImporter.getImportedTransaction(xid); if (tx == null) throw new XAException(XAException.XAER_INVAL); tx.doRollback(); TxImporter.removeImportedTransaction(xid); } catch (XAException ex) {
275276277278279280281282283284285
if (tx == null) throw new XAException(XAException.XAER_INVAL); if (tx.baseXid() != null) { tx.doRollback(); TxImporter.removeImportedTransaction(xid); } else throw new XAException(XAException.XA_RETRY);