@Override public Void call() throws Exception { AsyncExecutionMarker.markAsync(); ExecutableRunner runner = null; TransactionManager jtaTm = null; throw e; } finally { AsyncExecutionMarker.reset(); if (runner != null && runner instanceof DisposableCommandService) { if (allowedToDispose(((DisposableCommandService) runner).getEnvironment())) {
@Override public void checkPermission() throws SecurityException { if (active.get() && !AsyncExecutionMarker.isAsync()) { throw new SecurityException("Only async allowed"); } }
public void executeGivenJob(RequestInfo request) { Throwable exception = null; try { AsyncExecutionMarker.markAsync(); eventSupport.fireBeforeJobExecuted(request, null); if (request != null) { AsyncExecutionMarker.reset(); handleCompletion(processReoccurring, cmd, ctx); eventSupport.fireAfterJobExecuted(request, exception);