/** * End */ protected void end() { log.tracef("Ending work: %s", this); ExecutionContext ctx = getWorkContext(TransactionContext.class); if (ctx == null) { ctx = getExecutionContext(); } if (ctx != null) { Xid xid = ctx.getXid(); if (xid != null) { workManager.getXATerminator().endWork(work, xid); } } log.tracef("Ended work: %s", this); }
/** * Cancel */ protected void cancel() { log.tracef("Cancel work: %s", this); ExecutionContext ctx = getWorkContext(TransactionContext.class); if (ctx == null) { ctx = getExecutionContext(); } if (ctx != null) { Xid xid = ctx.getXid(); if (xid != null) { workManager.getXATerminator().cancelWork(work, xid); } } log.tracef("Canceled work: %s", this); }
ExecutionContext ctx = getWorkContext(TransactionContext.class); if (ctx == null) getWorkContext(javax.resource.spi.work.SecurityContext.class); if (securityContext != null && workManager.getCallbackSecurity() != null)