3 Replies Latest reply on Apr 21, 2009 4:10 AM by eklmnoff

    dynamically add change xhtml pages

    ajanz

      i got a seam app. i want my customers to dynamically add/change xhtml pages without deploying the whole project, instead simply add or change an xhtml in a specific directory.


      is there a way to do that?

        • 1. Re: dynamically add change xhtml pages
          pgmjsd

          That depends on how the app server handles hot-deployments.  Here's what we do with JBoss on our developer workstations:




          • Use an exploded WAR deployment.

          • Make sure the deployment scanner is running.

          • Copy the xhtml files from the source tree to the exploded directory in the JBoss server tree.




          We have a little ANT target that does the last part.

          • 2. Re: dynamically add change xhtml pages
            dan.j.allen

            Extrapolate from this entry in the FAQ.

            • 3. Re: dynamically add change xhtml pages

              I am having same problem, but a little different:


              - Simple 'Web Dynamic project' created in Eclipse works fine.
                Modified index.html gets replicated to C:\Java\jboss-5.1.0.Beta1\server\default\deploy\webProj.war\ (exploded war folder) and refreshing the page in browser displays the change.
              
              - Simple 'Seam Web Project' created in Eclipse won't work.
                Modified index.html is copied say to C:\Java\jboss-5.1.0.Beta1\server\default\deploy\seamProj.war\ as above, but JBoss server runs project from TMP\<...> folder, e.g. C:\Java\jboss-5.1.0.Beta1\server\default\tmp\<...5c4o2...>\seamProj.war\
              



              Is there any way to force JBoss to use default/deploy folder or tell it to synchronize from it?