views:

1371

answers:

2

Hi

I need to run junit tests for classes using ejb3 beans. In our case setting up jboss just for this purpose is not an option and therefore we need an alternative way to simulate the ejb communication. I've read that this should be possible with Embedded Jboss's EJB3StandaloneBootstrapper, but the problem is that I cannot get it to work properly.

I was wondering if anyone of you know of a good tutorial which explains all the details, including how to configure the various files (embedded-jboss-beans.xml, ejb3-interceptor-aop.xml etc). With the embedded jboss package came a tutorial for junit with example code, however, the build script in it failed. If you don't know a tutorial, do you at least know where I could find a working example of embedded jboss + junit?

A: 

I did a presentation on using the embedded JBoss and had a download with example code. Hope this helps.

Rob Di Marco
The example code looks like you've linked it wrong.
its http://www.innovationontherun.com/presentation-files/ete2007-dimarco-java-ee-unit-testing-code.zip
01
A: 

I believe Jakarta Cactus is the proper framework to run such tests.

DouglasJose