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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -