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 injection will work for MyFirstTest.  The problem is
the injection fails for MySecondTest with the "Unable to find injection
meta-data for..." error message.  Why does the injection work in the class
that actually causes the EJBContainer to be instantiated and not in any
other class?





--
View this message in context: 
http://openejb.979440.n4.nabble.com/Injection-fails-in-any-class-that-didn-t-instantiate-an-embedded-ejb-container-tp4396189p4396189.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to