Hi! Oleg Nitz wrote: > But are you sure, that it works? It has just thrown an exception on > deployment in my test. Ok, what is the exception? > And some critics: > 1) The "tmp" dir is created on startup and remains empty, > because the jars are copied to %TEMP% dir. Yes, which is stupid. > Is it some other purpose for the "tmp" dir? Yes, to hold tmp files. So the jars *should* be copied there. 8-) > 2) The copies of the jars are not deleted on shutdown. > It looks like deleteOnExit() doesn't work. Yeah, I had hoped that would work, but apparently it doesn't :-( > "Deletion will be attempted only for normal termination of the virtual > machine, as defined by the Java Language Specification (12.9)" > What does they mean? Something other than Ctrl+C? > Explicit System.exit()? Seems so. > Now the %TEMP% dir is infinitely growing. > > Maybe, it would be better to copy jar to "tmp" dir and to empty it > in a shutdown hook? In the case of abnormal termination of JVM > users would be able to empty it manually. Correct. And to also empty it on server re-start. /Rickard -- Rickard �berg Email: [EMAIL PROTECTED] http://www.telkel.com http://www.jboss.org http://www.dreambean.com
