Hi, sharing some code could have helped but i think i got your point. Using the openejb embedded arquillian adapter does the trick normally. It is available on the snapshot and soon in the next release.
<artifactId>arquillian-openejb-embedded-4</artifactId> <groupId>org.apache.openejb</groupId> <version>1.1.1-SNAPSHOT</version> *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/9/19 xeseo <[email protected]> > Hi, > In my project, several modules are under same pom project. > Like: > Parent (pom) > | > | ---- module A (jar) > | ---- module B (jar) > | ---- module C (jar) > > We're using openEJB as embeded container for unit test. However, each > module > will have to own its own jndi.properties, and during the Maven install > procedure, the container will init three times and cost lots of time. > Obviously, there will be more modules in the future. Then the test will > cost > more time initializing the container. > > So is it possible that different modules share the same container? Use one > centralized jndi.properties to replace all. > Do anyone have the idea? > > Thanks, > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Mutiple-module-share-the-same-container-tp4657506.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
