I'm developing a java/spring-mvc web app that using a scheduling system generate csv files to send via e mail.
My first idea was to generate these files locally in server and then send them to recipients, but now I have a doubt. Where to store temp files?
I will deploy my application as a war, so I know there could be problems.
Is it a bad idea to create a temporary directory in my WEB-INF directory? An alternative could be to serialize these files and store them in a database table.
What's your suggestion? any best practice?