webtier@glassfish.java.net

Re: Where to generate and store temporary files?

From: <forums_at_java.net>
Date: Mon, 23 May 2011 08:26:43 -0500 (CDT)

In java, The location of the directory used to hold temporary files is
defined by the property java.io.tmpdir. File tempDir = new
File(System.getProperty("java.io.tmpdir")); It is better to store your PDF
files there instead of the root directory ( context.getRealPath("/") ) of
your application.

--
[Message sent by forum member 'lamine_ba']
View Post: http://forums.java.net/node/804682