We are running Jboss 3.0.6/Tomcat 4.1.24 and are deploying the app in an ear file. 
When the server and app are up and running we create pdf files which are then used by 
our users. Our problem has been that we cannot access the directory within the ear 
file that the pdf files must be written to. We have since realised that it is not 
possible to write to a directory within an ear file (because it doesn't exist) and 
that we need to write it to a temporary directory (as specified in Servlet 2.3 
specificatiion Section 3.7.1). We are able to access the javax.servlet.context.tempDir 
value (on our installation: c:/jbosstomcat/tomcat-4.1.x/work/MainEngine/localhost/_) 
and use that to store the files but everytime we restart the server this directory is 
cleaned out. 

Our question is: what method can we employ to store these pdf files to ensure they 
remain after server restarts?

Do we maintain our own reference to a directory on the filesystem (e.g. 
C:/temp/pdffiles/). This would see to be bad code.

Or is there a property we can set to enforce non-deletion of the contents of the 
tempDir.

Thanks in advance for any help,
Conal

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828840#3828840

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828840


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to