2 Replies Latest reply on May 16, 2006 7:40 PM by ruzinjol

    continuous redeployment of war file

    ruzinjol

      I am presently working on a project which needs dynamic addition of files to the web application. The web application streams video. I use JBuilder2005 which automatically deploys the application on JBoss by changing the deployment descriptors as needed.

      When deploying I see that the war file includes a static number of files and in order to change that number of files (example: add new files), until now, I have to add new files into the JBuilder project directory and then redeploy the application in order that the files become part of the application file system. I have another exe running in parallel which writes in the video folder.

      Is there a way how can I write files in the folder to be included into the war file such that my web application can access new files on a real time basis? i.e. in other words a type of automatic redeployment each time new files are added to the application or at least repeated automatic redeployment after a certain amount of time?

      I would greatly appreciate help cos i am in a huge problem.

      ruzinjol

        • 1. Re: continuous redeployment of war file
          peterj

          Instead of copying myapp.war file to the deploy directory, create a myapp.war directory, place the war file contents (index.jsp, WEB-INF/web.xml, etc.) into that directory, and move that directory to the deploy directory.

          Then, when you have new video content, copy it to the appropriate location, such as myapp.war/video.

          Don't know how to do this using the JBuilder, I use Ant to build and deploy.

          • 2. Re: continuous redeployment of war file
            ruzinjol

            Thanks it worked fine.

            I am really grateful


            Thanks Peter

            ruzinjol