JBoss Seam was originally designed to be a framework on top of Java EE 5.0—to bridge the gap between JSF and EJB3. However, Seam is highly flexible and can stand on its own. In fact, Seam has no hard dependency on either JSF or EJB3. In Seam, any POJO with an
@Name annotation can be turned into a managed component. We can build Seam applications solely from POJOs. Such applications can be deployed in any J2EE 1.4 application server, as well as in plain Tomcat servers.
In this chapter, we modify the
betterjsf example to use a POJO instead of an EJB session bean to handle data access and business logic. The resulting example is
hellojpa. POJOs are clearly simpler and require less runtime infrastructure than EJBs. ...