@Override public V call() throws Exception { CorrelationIdTracker.setCorrelationId(correlationId); return job.call(); } }
@Override public void run() { String threadName = Thread.currentThread().getName(); log.debug("Executing task: {}", threadName); CorrelationIdTracker.setCorrelationId(correlationId); job.run(); } }
@Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String correlationId = getCorrelationId(request); CorrelationIdTracker.setCorrelationId(correlationId); response.addHeader(CORRELATION_ID_HEADER, correlationId); super.service(request, response); }
CorrelationIdTracker.setCorrelationId(correlationId); invokeMethod(instance, methodToRun, methodParams); } catch (Exception e) { throw jee; } finally { CorrelationIdTracker.setCorrelationId(null);