This page contains an attachment of a simple maven project that builds an .ear containing
4 EJBs (3 EEJB and 1 SessionBean)
Sample project shows also how to startup jboss embeddable container for testing purposes.
Tests are run using TestNG. There's a README.TXT file that explains complete setup of the
project (i didnt include jboss libraries otherwise .zip file would have been really huge).
Please feel free to upgrade/change the application if you want, and if you have problems
just mail me back at mmistroni@gmail.com.
Example Test for starting up jboss embeddable container is copied from Christian Bauer's example
on Hibernate CaveatEmptor sample application.
Have fun - Marco
P.S. Alternatively you cold use Ejb3Unit unit for out of container testing, which has also a maven integration Ejb3Unit

Comments (3)
Jun 26, 2006
Darren Hartford says:
For users with private repositories, you can place the ejb3-embed jars with some...For users with private repositories, you can place the ejb3-embed jars with something like the following after downloading the embed-ejb3 jars from jboss:
Modify your pom.xml as necessary.
Jul 26, 2006
Wonne Keysers says:
For some reason, the sample-maven-project.zip did not work for me. I theref...For some reason, the sample-maven-project.zip did not work for me. I therefore made a simpler one myself (only containing 1 session bean), which works fine. It is located here: http://www.realdn.net/msblog/content/binary/maven-ejb3-demo.zip
Mar 05, 2007
Daniel Wiese says:
Alternatively you cold use Ejb3Unit unit for out of container testing, which has...Alternatively you cold use Ejb3Unit unit for out of container testing, which has also a maven integration Ejb3Unit