-
1. Re: Images created on the fly
adrian.brock Mar 29, 2002 10:35 AM (in response to n_ton)From 2.4.4 you can create an unpacked war.
This is a directory structure that looks like a war,
make the directory something like myapp.war
JBoss just deploys it without copying.
Regards,
Adrian -
2. Re: Images created on the fly
jules_gosnell Apr 2, 2002 10:45 AM (in response to n_ton)
IMHO, you should not be writing back into the unpacked app
1. The webcontainer may not even unpack, but run packed.
2. You may not have perms to write there.
3. what does it gain you ? (garbage collection I assume)
use File.createTempFile()
use File.deleteOnExit() (garbage collection)
Jules -
3. Re: Images created on the fly
null_pointer Aug 13, 2002 2:07 PM (in response to n_ton)I have a similar problem, In my case users can upload images, which is getting stored in the
"C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\tmp\deploy\Default\app.ear\web1001\images" Dir.
But if i stop the server all the data is lost.
The other way round if i store the data outside the temp deploy dir. How to i give a link to the image.