Version 3
    1. In Eclipse, use the wizard to create a new Seam project called "myProject", make sure to choose "EAR" as the project type, as WAR files do not support EJB3

    2. Eclipse will create four separate projects

      1. myProject

      2. myProject-ear

      3. myProject-ejb

      4. myProject-test

    3. Of these, only two areas are, for now, of interest to us

      1. The "WebContent" folder in the "myProject" project

        1. This will contain all your JSF pages, images, CSS files etc.  Basically, everything to do with the UI.

      2. The "ejbModule" folder in the "myProject-ejb" project

        1. This will contain all your Java classes. 

        2. Although there is a SRC directory under the "myProject" folder, you can't use classes there as fully working Seam components

        3. Since most of the classes should be regarding business logic or persistance, they should be EJBs anyway

    4. To help clear some of the clutter set the filter to hide "Libraries from external"

    5. Turn off the Hibernate logging by opening "persistence.xml" (located in myProject-ejb --> ejbModule --> META-INF) and setting the property "hibernate.show_sql" to "false".  You don't have to do this, but I find Hibernate to be pretty chatty and the messages usually don't help me much.  You can always turn it back on later if needed.

     

    Main