2 Replies Latest reply on Jul 26, 2007 12:53 PM by Gavin King

    Seam on OAS

    omilian Newbie

      The Seam homepage states:

      "you can use Seam in any J2EE application server, with one caveat: you will not be able to use EJB 3.0 session beans. However, you can use either Hibernate or JPA for persistence, and you can use Seam JavaBean components instead of session beans" (http://labs.jboss.com/jbossseam/faq#j2ee)

      Does this mean that if I were to deploy Seam on Oracle App Server (OAS) then I would not be able to use Session Beans at all? Maybe I can use EJB 2.1 Session Beans?

      If Session Beans can't be used, then how should transactions be handled?

      Lastly, if anyone has actually deployed Seam on OAS I would be very interested to hear of your experiences.

      Alex.

        • 1. Re: Seam on OAS
          Michael Yuan Novice

          OC4J 11 supports EJB3. So, you can use EJB3 beans with Seam if you deploy there. See the examples/jee5 example for more details.

          If you are stuck with J2EE 1.4 version of OC4J, you cannot use EJB3 session beans. Instead, you use POJOs with Seam managed transactions. They are really the same as EJB3 session beans except that they do not require EJB3 annotations (e.g., @Stateful and @Remove) and do not require interfaces. So, they are simpler than EJB3 session beans. See the examples/jpa example to see how Seam POJO + JPA is used in J2EE application servers.

          • 2. Re: Seam on OAS
            Gavin King Master

            For this purpose OC4J 11 counts as a Java EE 5 application server.

            When I say "J2EE", the emphasis is on the "2", not the "EE".

            I know that some people still use the outdated "J2EE" label for describing all EE appservers, but this is incorrect usage.