4 Replies Latest reply on Jun 22, 2007 8:21 AM by mork0075

    General development question under Eclipse

    mork0075

      Hello,

      i'am very new to Seam and got some basic question.

      (1)
      How is the development cycle? This means, my Jboss is running and i created a project with seam-gen. I develop some things and then? Which is the right: first undeploy ant target, the deploy. Or first unexplode? This is not that clear for me. Which target have to be run, when also databases tables should be updated automatically (if i changed some entity beans perhaps)

      (2)
      My eclipse is doing something in the console, which is related to seam, but not initiated by me. Looks like a auto re-deployment. But i dont understand how it works, sometimes i changed something in my project and eventhing is fine, and sometimes a get an error pointing to the edited page in the webbrowser.

      So i would like to disable the auto deployment feature and do it on my own. How can i do that?

      Thanks for you help :)

        • 1. Re: General development question under Eclipse
          pmuir

          (1) Ant explode copies all the files across (and changed files if they are already there), ant unexplode deletes all files, ant restart restarts the deployed application. The deploy/undeploy targets create non exploded archives (which means you can't alter the view pages without restarting the applcaiton)

          (2) Yes, auto-redeploy. Turn it off by right clicking on the project, choosing properties, going to Builders, and unticking the .explode builder.

          • 2. Re: General development question under Eclipse
            mork0075

            Thanks for your reply. This means if i uncheck the .explode builder and made some changes, i first 'ant explode', the 'ant restart' and thats it?

            Can you give me a hint when schema creation takes place? I'am very new to Seam, so theres still a lot of "mystery" in the whole process. My intuitive understanding would be, that the hibernate schema creation takes place, everytime i 'ant restart' my application. (until hibernate's hibernate.hbm2ddl.auto is set to 'drop'). Is it right?

            • 3. Re: General development question under Eclipse
              pmuir

              Depends on the changes - if it's just JSF/facelets (.xhtml files) then you just need an explode. If you change Java code or configuration then you need a restart.

              It takes place when hibernate starts (at application (re)start) - when hibernate is on create-drop, it will always drop tables, create new ones, and run import.sql. If its on update then it tries to update them. Check the hibernate manual for more.

              • 4. Re: General development question under Eclipse
                mork0075

                Thanks a lot, this was really helpful :)