It is done for security reasons so that the JVM instance for Tomcat isn't
using the same temp directory as other applicaitons on the system.
Also so that there is a common temp directory path that is system neutral.
This is more secure when you lock down Tomcat with the SecurityManager and
a strict catalina.policy.

Regards,

Glenn

Eddie Ruvinsky wrote:
> Thanks Glenn.  The following Java API link has a quick
> blurb about the java.io.tmpdir system property:
> 
> 
>http://java.sun.com/j2se/1.3/docs/api/java/io/File.html#createTempFile(java.lang.String,
> java.lang.String, java.io.File)
> 
> The JDK sets the default value for this property to be
> /tmp on Unix and c:\temp on Windows.  So, it does not
> seem necessary to override the default value of
> java.io.tmpdir when starting Tomcat.
> 
> My follow-up question then is, why is this done?  Is
> it to be able to create a separate "namespace" for
> temp files generated by the Tomcat JVM process versus
> the other temp files on the file system?
> 
> Thanks in advance,
> Eddie
> 
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to