4 Replies Latest reply on Feb 23, 2008 3:05 PM by nickarls

    JBoss Seam questions

    andy

      Hi!


      I'm new to Seam, and I want to ask you several questions:
      The project in which development I'm participating is consist of the different code parts, as only JSF, EJB 2.0, JSP, Servlets etc. Our project runs on JBoss 4.2.0GA. So I need to add a little part of where I need to use JBoss Seam with EJB 3.0.
      My questions are:


      1) Can this conflict with other parts of our project or not?
      2) If not, is it necessary to add SeamPhaseListener to faces-config.xml or not, because when I add it I get an exception.
      3) Maybe this is not the right place, but can you add some example of ejb-jar.xml for my EJB 3.0 beans, as I couldn't found any, and my EJB beans didn't initialize at all, but when I use just bean without EJB 3.0 (with annotation @Name it is not initialized too). Maybe I forgot to add any xml file?



      Thanks in advance, andy.

        • 1. Re: JBoss Seam questions
          admin.admin.email.tld

          Barev!


          1) if you are referring to EJB 2.0 components, you don't have to worry, EJB 3.0 is backwards compatible and supports entity beans, for example.


          2) post your code and stack trace.  look at the seam example projects code.

          • 2. Re: JBoss Seam questions
            andy

            Hi!
            Thanks for your response.

            • 3. Re: JBoss Seam questions
              andy

              Hi!


              I have another question.


              Is it necessary during building of Seam project create .ear file, or I can just create .jar and .war files and deployment will be fine???


              Thanks in advance.

              • 4. Re: JBoss Seam questions
                nickarls

                An EAR contains wrapped WARs and JARs, a WAR is standalone.


                I recommend sticking with the seam-gen (or JBoss Tools) generated project until you are comfortable with the packaging formats.