you can use SLF4j MDC,MDC is set per thread. So each time a request is made to the server, we need to set MDC which can be acheived using Servet/Portlet filters.
Beauty is in the eye of the tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss