2011/11/26 Benson Margulies <[email protected]>: > On Fri, Nov 25, 2011 at 4:36 PM, Konstantin Kolinko > <[email protected]> wrote: >> 2011/11/26 Benson Margulies <[email protected]>: >>> >>> In a web application, I'd like to store a bit of data without >>> configuring a database, or, indeed anything that has to be edited into >>> an XML file or typed into a container-level gui. >> >> Define "store". What is proposed lifetime of that information? > > Forever. Sorry about the snide vendor remark. I have to think about > whether redeployment is good enough. Is that ServletContext.TEMPDIR > guaranteed to stick around across container reboots as long as the app > isn't specifically redeployed? >
If autodeployment is enabled just touching the war etc. (and since 7.0.23 just touching conf/context.xml) while Tomcat is running will cause redeployment of a web application. The content of the ServletContext.TEMPDIR directory will be cleared at that time. It might be not what you want. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
