without more info i'm not sure what i'll say is relevant but typically you can createcontainer and close it in @BeforeClass and @AfterClass. To do it only once you need to set OpenEjbContainer.Provider.OPENEJB_ADDITIONNAL_CALLERS_KEY property with the names of test classes.
- Romain 2012/2/19 amber <[email protected]> > beans.xml did not change anything > > but..I've found a turnaround : just add ejbContainer.close(); in "@After > public void release()" method in each test ^^ > > Why I have to do that I don't know but it's working now > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/openEJB-fail-on-second-test-tp4401889p4402384.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
