wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Unit testing EJBs with JBoss technologies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unit testing EJBs with JBoss technologies" Watch "Unit testing EJBs with JBoss technologies" New topic

Unit testing EJBs with JBoss technologies

Samuel Santos

Joined: Nov 18, 2008
Posts: 2
What does JBoss recommend to unit testing my EJBs?

I've tried Embedded JBoss with no success:
Embedded JBoss and Maven
Embedded JBoss and MBeans

There's no decent documentation about this technologies, this is something you can improve.

For now I'll stick with Embeddable EJB 3.0, which is pretty old and limited.

PS: I don't use Seam.

Samuel Santos<br /><a href="http://www.samaxes.com/" target="_blank" rel="nofollow">http://www.samaxes.com/</a>
Javid Jamae
Ranch Hand

Joined: May 14, 2008
Posts: 198
If you're using Java EE 5, to unit test you shouldn't need a container. You're EJB classes are POJOs, so just write JUnit tests against your classes.

I'm guessing you're trying to do integration testing. Sorry, I can't help you there, I haven't messed around with the embedded/embeddable containers.

Author: JBoss in Action, javidjamae.com, @javidjamae on Twitter
It is sorta covered in the JavaRanch Style Guide.
subject: Unit testing EJBs with JBoss technologies
Similar Threads
problem in setting mySql as default database server
Virtual host configuration
Tranfering entities to a desktop client
[SCBCD5] Lazy values returned from sb
JBOSS 4.0.0 application server to run php