Kim
Kim

Reputation:

Running JUnit tests with Embedded Jboss

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?

Upvotes: 1

Views: 5673

Answers (2)

Douglas
Douglas

Reputation: 1323

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

Upvotes: 0

Rob Di Marco
Rob Di Marco

Reputation: 44932

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

Upvotes: 1

Related Questions