On September 18, Rob Di Marco spoke on the JBoss Embedded Container at the Philadelphia JBoss User Group. The Embeddable container allows you to use the full power of EJB 3 and JPA outside a container. Rob walked through examples of using EJB 3 in a standalone application, in a unit test as well as in Tomcat.
Embeddable containers are timely and useful innovations that allow the adoption of EJB 3 as a truly lightweight development framework. It is also an important mechanism for using EJB 3 inside existing Spring+Tomcat applications.
Besides JBoss the JOnAS and Geronimo communities have also created embeddable EJB 3 containers that can work with Tomcat. From all indications, these innovations are seeing quite a bit of success. With the advent of Java EE 6, I expect these type of innovations to receive “official” blessing.
I am trying to muster some time to write a few articles on embeddable containers as well as deploy the EJB 3 in Action example code to a few of them. After I am done, I’ll make the deployment scripts available through the book’s page on Manning.com.