2 Replies Latest reply on Apr 4, 2006 3:26 PM by duranek

    Adding Files After Deployment

    duranek


      Hi,

      I deploy my war file to my jboss server. I suppose that i can reach my site with http://localhost:8080/test .

      In my application, I generate a pie chart but i don't know where to put it, because, war file is extracted in tmp/deploy/tmpxxxx directory always with a different name. How can i know my temperory war extraction directory? Or can the war file be extracted to always same temperory directory name ?



        • 1. Re: Adding Files After Deployment
          peterj

          Instead of deploying the war file, deploy the expanded war. In other words, where now you have a file named jboss_home/server/default/deploy/test.war, instead, create a directory named jboss_home/server/default/deploy/test.war, and unpack you war file into that directory.

          Then, have your code create your pie chart file in the jboss_home/server/default/deploy/test.war directory (or in some subdirectory). For example, if your code creates a pie chart in a file named chart.jpg within the test.war directory, you can access it via /chart.jg (or http://localhost:8080/test/chart.jpg).

          • 2. Re: Adding Files After Deployment
            duranek

            Great ! Thanks for the response :)