On my web application (it uses JSP pages) I'm using the MDC to put the the sessionid on the log records, but i'm facing a problem. The application server is IBM WebSphere 6.1 and it uses thread pools. So, sometimes, the thread for some sessions is changed (the pool allocate another thread to continue the session) and since the MDC is thread based, in this cases I'm getting a incorrect session on the log records. The log's are scrambled now.
Any suggestions?
