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.
We have this specific problem related to JBoss-4.0.1 and log4j (which comes inbuilt in JBoss). I dont want JBoss's inbuilt log4j to do logging for me. I want to make my own properties file and JBoss on the fly should lift the properties file and log accordingly to files and console. I tried to disable JBoss's log4j logging. But am unable to do it.
If I try to run a stand-alone java program (without JBoss Server) with a log4j properties file, it works fine and logs accordingly as given in my properties file. But, if I try to run my application (on JBoss), it is not taking my properties file, but it is taking JBoss's log4j.xml and logs accordingly. I tried to customize the log4j.xml, even that dint work for me.
I have deleted all the log4j.xml files, wherever I found in the %JBOSS_HOME% folder. Yet am not able to find the solution,even though, there is no xml file, even then, JBoss logs as if it is lifting the properties from an xml.
Please give me a solution to my problem.
Regards, Prashanth Babu.
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