Hi Ceki, Firstly, sorry for posting to log4j-user instead of jboss-user I spotted my mistake just as I hit send :-(
Re: WeakHashMap It doesn't make any difference if I do an explicit remove, it will remain on the heap until the garbage collector figures out it is unused. It might speed up the get(), but lots of deploy/undeploy is not a normal operation - optimization isn't very important here. I'll probably do it because I could hit problems with cross linking between classes loaded in the repositories from the classloaders used in the keys. I'm might not use repositories directly, see later. Re: Configuration I'm pretty happy with the mechanics. The spi.Configurator makes this very flexible, your example code has the idea. My problems are the following: 1) Unnecessary multiplication of Repostiories/Configuration Now I know this can be done per ClassLoader, this opens up the ability to do this for every JBoss component, in particular the embedded webserver (Tomcat). This may want to perform the configuration itself, which is fine, but it is more likely it will be configured through a JBoss mechanism see point 2. What I don't want to do is create 50+ repositories all doing configure and watch on the same url, just because the webserver *might* want use a different one. I think the best approach is to add an extra level of indirection. One map does ClassLoader->ConfigURL, then a second does ConfigURL->Repository. Does this sound ok, one repository is created per config url. I might need to cater for per URL/LoggingCongifurator if somebody wants to be stupid. 2) Deployment Configuration This isn't a log4j issue at all. In your example code you have app.getLoggingConfigurationApplicationResourceURL() it's the mechanics of this I haven't figured out. Do you want me to go into this here? Thanks again for all your help. Hopefully I've copied the correct mailing list this time :-) Regards, Adrian _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>