Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file uploading in war file deployment

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic