2 Replies Latest reply on Feb 26, 2008 12:54 PM by Pete Muir

    Seam support in non EJB

    Ashley Westwell Newbie

      Good Morning All,


      I have been reading the seam 2.0 reference document and have purchased a developer studio subscription. In general I am very happy with the changes that seam brings to JSF and development in general.


      From my reading it talks about how seam can be designed to work with EJB 3.0 or POJO’s in general. I think I aslso recall reading that seam can be run in a non EJB container such as tomcat. I have read the section regarding deploying seam application under tomcat with JBoss embedded. I am hoping that someone can offer some input on the following questions.


      1) Can seam run in a non EJB container?  Such as tomcat without using the JBoss embedded?


      1-a) If  so, Is there any features that are lost with running seam outside an EJB container?


      1-b) What are the steps in developer studio or using seam gen to create a project that runs in a tomcat without EJB embedded?


      2) In developer studio or seam-gen is it possible using the wizard to create a seam project that has no persistence layer?  Such as the sample application numberguess?


      3) What file would need to be modified to remove persistence from a seam application after creating a seam web project using the wizard?


      Thanks in advance for all the hard work on seam


      Best Regards,


      -Ashley Westwell

        • 1. Re: Seam support in non EJB
          Sebastien Degardin Newbie

          Hi,



          1) Can seam run in a non EJB container?  Such as tomcat without using the JBoss embedded?


          Yes, it is possible to use Seam completely outside of an EE environment, section 25.4 of the manual talks about that.



          1-a) If  so, Is there any features that are lost with running seam outside an EJB container?


          You loose all the services the EJB container provides.


          Seam isn't designed for EJB, but has been designed with EJB in mind.


          Sorrt, i can't answer about developer studio or seam gen !


          • 2. Re: Seam support in non EJB
            Pete Muir Master

            Ashley Westwell wrote on Feb 22, 2008 11:53 AM:


            1-a) If  so, Is there any features that are lost with running seam outside an EJB container?


            Different transaction management, no MDBs, less efficient clustering - i.e. enterprise features


            1-b) What are the steps in developer studio or using seam gen to create a project that runs in a tomcat without EJB embedded?


            You'll need to modify the project so that it looks like the JPA example. We will document this soon.


            2) In developer studio or seam-gen is it possible using the wizard to create a seam project that has no persistence layer?  Such as the sample application numberguess?


            No, you need to modify the generated project.


            3) What file would need to be modified to remove persistence from a seam application after creating a seam web project using the wizard?


            Any persistence.xml, and -ds.xml, edit components.xml to remove any references to persistence and transaction management.