6 Replies Latest reply on Jan 11, 2008 6:15 AM by maxandersen

    hot deployment in EAR

    nickarls

      Hi,

      The Manual states that

      seam-gen does not support incremental hot deployment for EAR
      projects.


      Does that mean that it is seam-gen that doesn't support it or is it seam that doesn't support it, i.e. if you would get the classes under WEB-INF/dev, would it work then?

      Which brings me to the context of the question: JBoss Tools Seam module generates separate project for war, jar, ear and test, is there any way of setting the jar src folder to output to the war-projects WEB-INF/dev folder. It seems like Eclipse only wants to ouput within the own project...

      Thanks in advance,
      Nik

        • 1. Re: hot deployment in EAR
          maxandersen

          why would you want the ejb jar to go to the war ?!

          • 2. Re: hot deployment in EAR
            tom_goring

            Hi,

            I found that I had to tweak the ant build.xml and ensure that :
            1) eclipse.running=true (uses the eclipse complier rather than ant)
            2) and the code in the action folder gets copied to the WEB-INF/dev dir.

            Then it works great.....

            However I only do this with my POJO's, you can't do this with your Entity Beans.

            Thanks

            Tom

            • 3. Re: hot deployment in EAR
              maxandersen

              btw. the part that does not work when we say EAR hotdeployment does not work is the hotdeploy of EJBs

              • 4. Re: hot deployment in EAR
                nickarls

                 

                "max.andersen@jboss.com" wrote:
                why would you want the ejb jar to go to the war ?!


                Well, every place I see incremental hot deployment mentioned I also see WEB-INF/dev. Of course, the code also goes into the ejb jar but I had the impression that since JBoss Tools does exploded deployment, I could have the code in both places during development and have them hot-deployed.

                If hotdeployment works for pojo actions in ears, where should the code go (if it's not the war WEB-INF/lib)?

                tom: I use JBoss Tools generated project so I don't have an ant build file.


                • 5. Re: hot deployment in EAR
                  tom_goring

                  I don't know about Jboss Tools but the hot deployed POJO's need to go in the exploded :
                  <EAR Dir>/<WAR Dir>/WEB-INF/dev
                  directory.

                  You also need to think about class loading issues as your code deployed in you EJB.jar file won't see your actions handlers. Also any code in you WAR (WEB-INF/classes) will not see the hot deployed actions (only seam sees them). Provided your laying is OK this works fine however.

                  • 6. Re: hot deployment in EAR
                    maxandersen

                    my point is that if they go into /dev it is better in the first place to put that code in your WAR and not in your ejb-jar because of dependencies.