This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I support a Web application written on the Weblogic 6.1 platform. All logging is issued via a log4j wrapper class called Logger. This class has several static methods (debug, info, warning, etc.) that call into log4j Category methods. As these methods are static, they're being called from many different sources (servlets, filters, beans) without instantiating the Logger class. I would like to pull specific user information from the HttpSession (home-grown authentication using public name) and append this to the logged message, but the Logger class static methods do not have direct access to the HttpSession. Also, at any one point in time, I don't know whether these static methods are participating in a session. My question: Is there an appropriate way to create a stateful session bean, populate with user info and later retrieve the bean from Logger to pull the info? Where's the best place to instantiate the session bean? Thanks! Chris
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com