jndi.properties is used at startup so by container BTW starting 3 times the container for a project is not an issue (startup is an issue for a bunch of tests but it is fast enough to be done by module...excepted if each module has a single test ;)). You can still use different configuration in a single module define surefire multiple time if you need it (sample here: http://svn.apache.org/repos/asf/openejb/trunk/openejb/examples/multi-jpa-provider-testing/pom.xml )
*Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/9/19 Edison Xu <[email protected]> > Actually, I'm not using arquillian for unit test. That will be the next > option. > Currently, I'm trying to write unit test cases following the instructions > of > openEJB, and it works. > But as I mentioned, there'll be 3 jndi.properties under each child > project's > root of the classpath. > And if I run clean install for the parent project, it will run the three > child module with the unit test. > So... three times container initialization will occur. > > By using Arquillian, it is possible to point a embedded container to run > all > test suites. But does openEJB support the shared jndi.properties and only > initialize the container once for all? > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Re-Mutiple-module-share-the-same-container-tp4657508p4657514.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
