I have a Java EE 5 web application that I am deploying to WebSphere 7 as an EAR file.
I want my log4j configuration to be external to the EAR file, so I can customize the log contents when necessary, without having to rebuild and redeploy the EAR file.
As far as I understand, I can specify the location of my log4j.properties file by setting a "system variable" called log4j.configuration. (e.g. log4j.configuration = c: /log4j.properties)
My question is: how to set this system variable in the WebSphere 7 admin console?
Looking through, I see that there is Environment > WebSphere Variables , but it does not look right, because it will be setting a variable for the entire server. I assume that I want to set the system variable only for my application EAR file.
Any help or suggestions are welcome!
Rob
Robert Hume
source share