deleteOnExit() in web service
843833Jan 12 2009 — edited Jan 13 2009Hi,
I'm creating a lot of temp files in my Web Service and I execute the method deleteOnExit() on every temp file after creation. The problem is that these files are not deleted after the webservice is finished and I believe thats because the jvm has to exit to activate the delete on all files that has been flagged with deleteOnExit() method. Correct?
So is it possible to make the delete happend after the web service is finished with a request instead of when the jvm exits which will almost never happend?