With the GA release of Seam 1.1 today, Seam application developers now have a variety of deployment options available on JBoss AS, Glassfish, WebLogic, and Tomcat servers :
EJB3-based Seam Applications
If you would like to take advantage the full power of the EJB3 container and develop Seam applications using EJB3 session and entit beans (POJO-like components), your Seam application will be able to deploy in the following application servers.
- JBoss AS 4.0.5 with EJB3: You must install the EJB3 profile of JBoss from the JEMS installer. All examples in the distribution deploys in JBoss AS with EJB3 support.
- Sun Glassfish v1 UR1: The
"examples/glassfish" project in the distrbution shows the Glassfish configuration for the Seam Hotel Booking example app. You can read more about it here.
- Tomcat 5.5.17+: In this scenario, the application itself bundles and bootstraps a embedded JBoss EJB3 container. The “ant tomcat” build target in other examples (e.g. in
"examples/booking" project) shows how to build Seam applications with JBoss Embeddedable EJB3 container for deployment on Tomcat.
We will test Seam on the Java EE 5.0 certified versions of WebLogic and Oracle when they come out.
POJO-based Seam Applications
If you just want to develop database-driven web applications, without needing EJB3 container services such as messaging, JMX etc., you can write your application in Seam and Hibernate POJOs. You can choose to use the Hibernate session API or the JPA EntityManager for data access. The Seam POJO example apps in the distribution re-implement the Seam Hotel Booking demo. They are in the "examples/hibernate2" (Hibernate Session) and "examples/jpa" (JPA EntityManager) projects respectively. For those applications, you can deploy on:
- JBoss AS 4.0.5 with default J2EE profile: The Seam POJO applications deploy on JBoss AS with or without EJB3 support. Just run
"ant jboss" to build the JBoss AS deployable WAR files.
- Sun Glassfish v1 UR1: Glassfish has an TM bug with its embedded Derby database. So, we have to provide a workaround in a special Hibernate dialect in this scenario. See the
readme.txt file in hibernate2 and jpa examples for more details. Run "ant glassfish" to build Glassfish deployable WAR files.
- WebLogic 9.2: Run
"ant weblogic" to build WebLogic deployable WAR files. You can deploy the example Seam POJO applications in the WebLogic “examples” server.
- Tomcat 5.5.17+: For the Seam POJO apps, the app no longer needs to bootstrap the embedded EJB3 conatiner. But it does need to bootstrap a JTA datasource from the embedded HSQL database. Run
"ant tomcat" to build the Tomcat deployable WAR files.