5 Replies Latest reply on Nov 19, 2007 5:17 PM by kukeltje

    Architecture SEAM

    anicaise

      Hello,

      Someone could tell me the best file architecture for a seam project ? In fact "Seam gen"generate me a project with Actions and Models packages but i don't know where to put my own java classes. Is there a best practice ?

      Regards,

        • 1. Re: Architecture SEAM

          Do you have something that does not fit Model View Controller pattern?

          If you just mean a place for business logic, it is my understanding that business logic belongs to Actions in the default Seam file structure (I would call it Controllers to make it not sound more generic and not Actions as if it's struts but that's just a matter of preference).

          • 2. Re: Architecture SEAM
            anicaise

            In fact,


            My stateless and statefull EJB are in the sources folder "src/Action"
            My entities beans in the "src/Model" folder


            So, for my "Utils classes" like "Encrypt classes, ..." I think it is not a good idea to place it in the "src/action" ...

            Idea ??

            • 3. Re: Architecture SEAM
              kukeltje

              Yes, use a separate project ;-)

              • 4. Re: Architecture SEAM
                anicaise

                a new jar ?

                • 5. Re: Architecture SEAM
                  kukeltje

                  why not? unless they are really tied to this specific project. Then you can always add another src dir.