0 Replies Latest reply on Apr 9, 2009 8:47 PM by gonorrhea

    incremental redeployment with POJOs

    gonorrhea

      For my Seam 2.0.2-FP app, I am trying to incrementally hot deploy changes to a JavaBean (backing bean for my facelet) and it's not working as expected (changes are not being picked up by JBoss after ant explode and F5 of browser).  Yes, I do have this line in my components.xml:


      <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>



      and these lines in the WAR target in the build.xml:


      <filterset>                             
                                  <filter token="debug" value="${debug}" />
                                  <filter token="jndiPattern" value="${project.name}/#{ejbName}/local" />
                              </filterset>



      (and yes, I know that it's a bug and it really should be dynamically replaced by Seam in runtime using components.properties variable values, but whatever).


      build-dev.properties:


      debug=true
      action.dir=WEB-INF/dev



      In the Yuan 2nd ed. it states Seam supports a very fast edit/compile/test cycle through incremental redeployment of POJOs placed in the src/hot folder.  Seam provides a special class loader that will automatically load changes to these classes when they are deployed to the WEB-INF/dev directory.


      1) does that statement apply to Seam 2.0.x as well?

      2) in the jboss-seam-2.1.1.GA examples (the few I looked at the directory structure for), there is no src/hot directory.

      3) Are the src/hot and WEB-INF/dev directories that are created/used by seam-gen?

      4) Is there a knowledgebase or wiki article on this topic?