8 Replies Latest reply on May 17, 2011 6:48 AM by davided80

    Configuration of multiple target containers

    davided80

      While testing the implementation of JBoss 4 Container for Arquillian, I tried to write a test that deploys the same ear in two jboss servers instances:

      https://github.com/DavideD/arquillian-container-jbossas/blob/ARQ-238-with-fixes/jbossas-managed-4.2/src/test/java/org/jboss/arquillian/container/jbossas/managed_4_2/JBossASIntegrationMultipleTargetTestCase.java

       

      using this arquillian.xml:

      https://github.com/DavideD/arquillian-container-jbossas/blob/ARQ-238-with-fixes/jbossas-managed-4.2/src/test/resources/arquillian.xml

       

      I've encounterd two strange behaviours not related to the implementation of the container:

      1) Only the container with default = true is loaded.

      2) When both containers are loaded, only one configuration for the same type of container is used.

       

      I'm not sure if my configuration is wrong or these are bugs. Anyway, right now I've fixed them these way:

      https://github.com/DavideD/arquillian-core/commit/b288b6c8f4ebb7ae8eea1f99d1ad3c5f2fd18fa2#diff-1

       

      Thanks,

      Davide