Injection fails in any class that didn't instantiate an embedded ejb container

2012-02-16 Thread afryer
I am writing unit test cases for a group of stateless session ejbs and to speed up test case execution, I want to create the embedded ejb container once and use it across all the test case classes. An example of my test case structure is shown below. Assuming MyFirstTest runs first, then the

Re: Injection fails in any class that didn't instantiate an embedded ejb container

2012-02-16 Thread Romain Manni-Bucau
Hi, You can either add an annotation to make it managed (managedbean one for instance) or use openejb.additionnal.callers property to specify the qualified name of the test class in the map you give when you start the container. The reason it doesnt work is you dont start the container in the