public void forget(final Xid xid) throws XAException { try { Entry entry = known.get(SimpleXid.of(xid).withoutBranch()); if (entry != null) { entry.forget(); } else { throw new XAException(XAException.XAER_NOTA); } } catch (XAException e) { throw e; } catch (Throwable t) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMFAIL, t); } }
public void commit(final Xid xid, final boolean onePhase) throws XAException { try { Entry entry = known.get(SimpleXid.of(xid).withoutBranch()); if (entry != null) { entry.commit(onePhase); } else { throw new XAException(XAException.XAER_NOTA); } } catch (XAException e) { throw e; } catch (Throwable t) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMFAIL, t); } }
public void dropLocal(@NotNull final Transaction transaction) { final Xid xid = getXid(transaction); final SimpleXid gtid = SimpleXid.of(xid).withoutBranch(); final Entry entry = known.remove(gtid); if (entry != null) { timeoutSet.remove(entry.getXidKey()); } }
public Transaction findExistingTransaction(final Xid xid) throws XAException { try { final SimpleXid simpleXid = SimpleXid.of(xid); final SimpleXid gtid = simpleXid.withoutBranch(); final ConcurrentMap<SimpleXid, Entry> known = JBossLocalTransactionProvider.this.known; Entry entry = known.get(gtid); if (entry != null) { return entry.getTransaction(); } final Transaction transaction = ext.getTransaction(xid); if (transaction == null) { return null; } return known.computeIfAbsent(gtid, g -> getEntryFor(transaction, g)).getTransaction(); } catch (XAException e) { throw e; } catch (Throwable t) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMFAIL, t); } }
public void commitLocal(@NotNull final Transaction transaction) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).commitLocal(); }
public void commitLocal(@NotNull final Transaction transaction) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).commitLocal(); }
public void rollbackLocal(@NotNull final Transaction transaction) throws IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).rollbackLocal(); }
public void rollbackLocal(@NotNull final Transaction transaction) throws IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).rollbackLocal(); }
public ImportResult<Transaction> findOrImportTransaction(final Xid xid, final int timeout, final boolean doNotImport) throws XAException { try { final SimpleXid simpleXid = SimpleXid.of(xid); final SimpleXid gtid = simpleXid.withoutBranch(); final ConcurrentMap<SimpleXid, Entry> known = JBossLocalTransactionProvider.this.known; Entry entry = known.get(gtid);
tm.begin(); final Transaction transaction = tm.suspend(); SimpleXid gtid = SimpleXid.of(getXid(transaction)).withoutBranch(); known.put(gtid, getEntryFor(transaction, gtid));
added = false; for (final Xid xid : xids) { SimpleXid gtid = SimpleXid.of(xid).withoutBranch(); if (seen.add(gtid)) { added = true; SimpleXid gtid = SimpleXid.of(xid).withoutBranch(); if (seen.add(gtid)) { writeParam(P_XID, outputStream, xid);
public void commit(final Xid xid, final boolean onePhase) throws XAException { try { Entry entry = known.get(SimpleXid.of(xid).withoutBranch()); if (entry != null) { entry.commit(onePhase); } else { throw new XAException(XAException.XAER_NOTA); } } catch (XAException e) { throw e; } catch (Throwable t) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMFAIL, t); } }
public void forget(final Xid xid) throws XAException { try { Entry entry = known.get(SimpleXid.of(xid).withoutBranch()); if (entry != null) { entry.forget(); } else { throw new XAException(XAException.XAER_NOTA); } } catch (XAException e) { throw e; } catch (Throwable t) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMFAIL, t); } }
public void forget(final Xid xid) throws XAException { try { Entry entry = known.get(SimpleXid.of(xid).withoutBranch()); if (entry != null) { entry.forget(); } else { throw new XAException(XAException.XAER_NOTA); } } catch (XAException e) { throw e; } catch (Throwable t) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMFAIL, t); } }
public void dropLocal(@NotNull final Transaction transaction) { final Xid xid = getXid(transaction); final SimpleXid gtid = SimpleXid.of(xid).withoutBranch(); final Entry entry = known.remove(gtid); if (entry != null) { timeoutSet.remove(entry.getXidKey()); } }
public void dropLocal(@NotNull final Transaction transaction) { final Xid xid = getXid(transaction); final SimpleXid gtid = SimpleXid.of(xid).withoutBranch(); final Entry entry = known.remove(gtid); if (entry != null) { timeoutSet.remove(entry.getXidKey()); } }
public void rollbackLocal(@NotNull final Transaction transaction) throws IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).rollbackLocal(); }
public void commitLocal(@NotNull final Transaction transaction) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).commitLocal(); }
public void commitLocal(@NotNull final Transaction transaction) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).commitLocal(); }
public void rollbackLocal(@NotNull final Transaction transaction) throws IllegalStateException, SystemException { getEntryFor(transaction, SimpleXid.of(getXid(transaction)).withoutBranch()).rollbackLocal(); }