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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -