• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Test EJB with WASCE/OpenEJB embedded container

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problam was the dependency

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



was the correct one.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic