i would like to get a session attribute (user name) in order to inject it into a MDC for a logger.
I don't even know if it is possible.
Any idea ? thanks
[ Edit ]
We are working with an Ajax framework (Zk). So the solution with Filter is not applicable. We have to put and remove in each event triggered by the framework in order to write into specific log (by user).
So i search how to automate these action with AOP.