| Author |
file uploading in war file deployment
|
Amirtharaj Chinnaraj
Ranch Hand
Joined: Sep 28, 2006
Posts: 215
|
|
hi guys
iam are using war file to deploy a web application using jboss 4.0.1 .the problem iam facing is iam not able to
upload the images and files in the server file system inside the web-application.iam not able to get the context path in delpoy directory .what iam
able to get is the contex path under temp directory of jboss
i tried to find a solution for this problem .still iam not able to get the right answere
some peoples telling this as a drawback of war file deployment
http://coding.derkeiler.com/Archive/Java/comp.lang.java.programmer/2007-08/msg00615.html
thanks
amir
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8141
|
|
Ideally, the files should not be uploaded within the war. Imagine when you have to upgrade your war, you might end up losing the "uploaded" contents in the older war file.
But if you still want to follow that approach, look at the exploded deployment support that JBoss has http://www.jboss.org/community/wiki/ExplodedDeployment. JBoss will not extract the war to the tmp folder when you do an exploded deployment.
|
[My Blog] [JavaRanch Journal]
|
 |
 |
|
|
subject: file uploading in war file deployment
|
|
|