• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test EJB with WASCE/OpenEJB embedded container

 
Oscar G. Rodriguez
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm trying to test EJB with WASCE embedded container, JDK 7 and EJB 3.1, but it doesn't work for me.

I have a normal faceted EJB project, and the pom.xml with the dependency



The EJB is a simple Stateless one with annotations, and the test class (in the same project) is



When I execute this the EJBContainer is null, without errors.

I think that I miss some configuration files, but I didn't see anything in the examples that I found.

http://antoniogoncalves.org/2011/01/12/bootstrapping-cdi-in-several-environments/
http://webspherepersistence.blogspot.de/2011/03/lightweight-jpa-testing-in-jee.html
 
Oscar G. Rodriguez
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problam was the dependency

<groupId>org.apache.openejb</groupId>
<artifactId>openejb-ejbd</artifactId>


was the correct one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic