EJB programming & troubleshooting: Mapped Diagnostic Context(MDC) with EJB 3.0 Interceptors
Hi people. I have a issue to solve regarding logging in a EJB 3.0 application. I want to log a sessions user(userid) witht the actions that the user performs. The actions is methods in a class that I log when a Interceptor is invoked. I noticed that when the interceptor is invoked it runs in a new thread, and thus I can not get the values i have "put" in MDC. Since MDC works "perThread" Is there any known workarounds to this issue?
- Posted by: ??yvind Rotnes
- Posted on: May 13 2008 12:48 EDT