I went through the same process of trying to speed up my test case execution by only instantiating a single container. I was able to setup my test cases so that only a single container is instantiated and each unit test can re-use the same container. This is only within a single maven module though.
This might be useful... http://openejb.979440.n4.nabble.com/Injection-fails-in-any-class-that-didn-t-instantiate-an-embedded-ejb-container-td4396189.html#a4397187 I don't think it makes sense to re-use the same container across modules though. That's more of an integration test rather than a unit test. Maybe you could create a new maven module just for running unit/integration tests against your other modules and use a single container. -- View this message in context: http://openejb.979440.n4.nabble.com/Different-module-share-same-container-tp4657507p4657535.html Sent from the OpenEJB User mailing list archive at Nabble.com.