/** * Invoked when transaction inflow work ends * * @param work The work ending * @param xid The xid of the work */ public void endWork(Work work, Xid xid) { delegator.endWork(work, xid); }
/** * End */ protected void end() { if (trace) { log.trace("Ending work " + this); } ExecutionContext ctx = getExecutionContext(); if (ctx != null) { Xid xid = ctx.getXid(); if (xid != null) { workManager.getXATerminator().endWork(work, xid); } } if (trace) { log.trace("Ended work " + this); } }