private ImportResult<LocalTransaction> getImportedTransaction(final Xid xid) throws XAException { final ImportResult<LocalTransaction> result = transactionContext.findOrImportTransaction(xid, 0, true); if (result == null) { throw Log.log.noTransactionXa(XAException.XAER_NOTA); } final LocalTransaction transaction = result.getTransaction(); if (! transaction.isImported()) { throw Log.log.noTransactionXa(XAException.XAER_NOTA); } return result; } }
void rollbackAndDissociate() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().rollback(); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void commitAndDissociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().commit(); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
public void rollback() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } try { owner.getProvider().rollbackLocal(transaction); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } try { owner.getProvider().commitLocal(transaction); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
int result = ! importResult.getTransaction().isImported() ? XAResource.XA_RDONLY : importResult.getControl().prepare(); if (result == XAResource.XA_RDONLY) { writeSimpleResponse(M_RESP_XA_PREPARE, i, P_XA_RDONLY);
private ImportResult<LocalTransaction> getImportedTransaction(final Xid xid) throws XAException { final ImportResult<LocalTransaction> result = transactionContext.findOrImportTransaction(xid, 0, true); if (result == null) { throw Log.log.noTransactionXa(XAException.XAER_NOTA); } final LocalTransaction transaction = result.getTransaction(); if (! transaction.isImported()) { throw Log.log.noTransactionXa(XAException.XAER_NOTA); } return result; } }
private ImportResult<LocalTransaction> getImportedTransaction(final Xid xid) throws XAException { final ImportResult<LocalTransaction> result = transactionContext.findOrImportTransaction(xid, 0, true); if (result == null) { throw Log.log.noTransactionXa(XAException.XAER_NOTA); } final LocalTransaction transaction = result.getTransaction(); if (! transaction.isImported()) { throw Log.log.noTransactionXa(XAException.XAER_NOTA); } return result; } }
void rollbackAndDissociate() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().rollback(); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void rollbackAndDissociate() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().rollback(); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
public void rollback() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } try { owner.getProvider().rollbackLocal(transaction); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void commitAndDissociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().commit(); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
public void rollback() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } try { owner.getProvider().rollbackLocal(transaction); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void commitAndDissociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().commit(); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } try { owner.getProvider().commitLocal(transaction); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } try { owner.getProvider().commitLocal(transaction); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
int result = ! importResult.getTransaction().isImported() ? XAResource.XA_RDONLY : importResult.getControl().prepare(); if (result == XAResource.XA_RDONLY) { writeSimpleResponse(M_RESP_XA_PREPARE, i, P_XA_RDONLY);
int result = ! importResult.getTransaction().isImported() ? XAResource.XA_RDONLY : importResult.getControl().prepare(); if (result == XAResource.XA_RDONLY) { writeSimpleResponse(M_RESP_XA_PREPARE, i, P_XA_RDONLY);