Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

deleteOnExit() in web service

843833Jan 12 2009 — edited Jan 13 2009
Hi,

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2009
Added on Jan 12 2009
2 comments
302 views