Configuring Seam in Java SE, with the JBoss Embeddable EJB3 container
The JBoss Embeddable EJB3 container lets you run EJB3 components outside the context of the Java EE 5 application server. This is especially, but not only, useful for testing.
The Seam booking example application includes a TestNG integration test suite that runs on the Embeddable EJB3 container.
The booking example application may even be deployed to Tomcat.
Installing the Embeddable EJB3 container
Seam ships with a build of the Embeddable EJB3 container in the embedded-ejb
directory. To use the Embeddable EJB3 container with Seam, add the embedded-ejb/conf
directory, and all jars in the lib
and embedded-ejb/lib
directories to your classpath. Then, add the following line to components.xml
:
<core:ejb />
This setting installs the built-in component named org.jboss.seam.core.ejb
. This component is responsible for bootstrapping the EJB container when Seam is started, and shutting it down when the web application is undeployed.