java - tomcat how to keep temporary files? -



java - tomcat how to keep temporary files? -

i found out when call:

file.createtempfile();

in tomcat7 temp file created. but... deleted after thread creating file ends.

the default behavior of jvm should maintain these files until shutdown. apparently tomcat overwrites behavior. there switch alter tomcat maintain temp file?

file.createtempfile("filename","format");

will create file scope particular thread only.

may manually calling like

file.deleteonexit()

might help.

java tomcat temporary-files

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -