Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to let all WebContexts use the same non-default temp folder

Gents,

 

Our application sets up jetty programmatically.

Now what it did was:

mWapContext.getServletContext().setAttribute("javax.servlet.context.tempdir", new File(System.getProperty("java.io.tmpdir")));

 

But this way quite a few jetty-code paths are unaware of this directory.

Also all other contexts picked up by WebAppProvider would not know the temp-folder.

 

We use Jetty 9.0.3 with settings:

java.io.tmpdir: C:\Users\<user>\AppData\Local\Temp

java.home     : c:\<app folder>\jre\jre

jetty.home    :

 

* What is the way to let all contexts connected to Jetty by default point to a single temp folder(not the OS-default temp folder)?

   There’s a separate jetty document about temp folders, but for some reason it doesn’t click with what calls I need to perform.

* Also, Jetty-home is empty. What folder should it be pointing to?

 

Kind regards,

Roland

 


Back to the top