I've created another log4j repository selector, this time for JBoss AS 5.1.0.GA.
Previously, I was able to register for deployment notifications, but it's not clear how to do this in JBoss AS 5. Things seems to have changed somewhat. Can anyone point me in the right direction?
I currently have to examine the context classloader and the call stack to choose which LoggingRepository to select. While this is fine if a little heavy weight, it's far from ideal because I can't empty the cache when there are deployments.