/** * <p> * Calling {@link JBossXATerminator} to cancel the work for us. * <p> * There should not be need any action to be processed by wildfly transaction client. */ @Override public void cancelWork(Work work, Xid xid) { jbossXATerminator.cancelWork(work, xid); }
/** * <p> * Suspending transaction and canceling the work. * <p> * Suspend transaction has to be called on the wildfly transaction manager * and the we delegate work cancellation to {@link JBossXATerminator}.<br> * First we have to cancel the work for jboss terminator would not work with * suspended transaction. */ @Override public void endWork(Work work, Xid xid) { jbossXATerminator.cancelWork(work, xid); try { ContextTransactionManager.getInstance().suspend(); } catch (SystemException se) { throw TransactionLogger.ROOT_LOGGER.cannotSuspendInflowTransactionUnexpectedError(work, se); } }
/** * Invoked when the work fails * * @param work The work ending * @param xid The xid of the work */ public void cancelWork(Work work, Xid xid) { delegator.cancelWork(work, xid); } }
/** * <p> * Calling {@link JBossXATerminator} to cancel the work for us. * <p> * There should not be need any action to be processed by wildfly transaction client. */ @Override public void cancelWork(Work work, Xid xid) { jbossXATerminator.cancelWork(work, xid); }
/** * <p> * Calling {@link JBossXATerminator} to cancel the work for us. * <p> * There should not be need any action to be processed by wildfly transaction client. */ @Override public void cancelWork(Work work, Xid xid) { jbossXATerminator.cancelWork(work, xid); }
/** * Cancel */ protected void cancel() { if (trace) log.trace("Cancel work " + this); ExecutionContext ctx = getExecutionContext(); if (ctx != null) { Xid xid = ctx.getXid(); if (xid != null) { workManager.getXATerminator().cancelWork(work, xid); } } if (trace) log.trace("Canceled work " + this); }
/** * <p> * Suspending transaction and canceling the work. * <p> * Suspend transaction has to be called on the wildfly transaction manager * and the we delegate work cancellation to {@link JBossXATerminator}.<br> * First we have to cancel the work for jboss terminator would not work with * suspended transaction. */ @Override public void endWork(Work work, Xid xid) { jbossXATerminator.cancelWork(work, xid); try { ContextTransactionManager.getInstance().suspend(); } catch (SystemException se) { throw TransactionLogger.ROOT_LOGGER.cannotSuspendInflowTransactionUnexpectedError(work, se); } }
/** * <p> * Suspending transaction and canceling the work. * <p> * Suspend transaction has to be called on the wildfly transaction manager * and the we delegate work cancellation to {@link JBossXATerminator}.<br> * First we have to cancel the work for jboss terminator would not work with * suspended transaction. */ @Override public void endWork(Work work, Xid xid) { jbossXATerminator.cancelWork(work, xid); try { ContextTransactionManager.getInstance().suspend(); } catch (SystemException se) { throw TransactionLogger.ROOT_LOGGER.cannotSuspendInflowTransactionUnexpectedError(work, se); } }