> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] > Subject: Re: adding files to classpath > > Why should I restart tomcat to change the config in this case?
If you're using ClassLoader.getResourceAsStream() each time you check the config, it should be o.k. without a restart. However, if you're using some technique that caches the config with the classloader, it won't go away until the classloader does, which won't be until the complete JVM is restarted. > so its basically the same as the above, the only difference being > that I'm modifying the classpath indirectly. It's not quite the same, in that there's a separate classloader that handles java.endorsed.dirs, rather than the system classloader. For these purposes (no classes), the difference is probably moot. I'd still likely use java.endorsed.dirs, just to keep things separated. > everything seems to work (including new stuff and old stuff), > could I have broken anything I don't see yet by this? As long as no actual classes are involved, I don't think there's a problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org