7 Replies Latest reply on Jul 11, 2014 7:55 AM by Paris Apostolopoulos

    Deployable Datasource + driver deployment in one go? Wildfly 8.1 / Arquillian

    Paris Apostolopoulos Newbie

      Hi I am trying to figure out (maybe I am doing something wrong in the -ds.xml configuration).

       

      If Wildfly 8.1 supports the deployment of a datasource definition (ironjacamar.org/doc/schema/datasources_1_1.xsd) + a driver in one deployable package at once?

       

       

      Deployment
          public static WebArchive createDeployment() {
              File[] libs = Maven.resolver().loadPomFromFile("pom.xml").resolve("postgresql:postgresql").withTransitivity().asFile();
      
              return ShrinkWrap.create(WebArchive.class,"test.war")
                      .addAsWebInfResource("web.xml")
                      .addAsWebInfResource("test-ds.xml")
                      .addClass(SimpleUser.class)
                      .addAsResource("test-persistence.xml", "META-INF/persistence.xml")
                      .addAsLibraries(libs)
                      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
          }
      

       

       

      At the same time is there any reference example on 1.1 xsd based -ds.xml?  I can read here, that you need to have a driver already installed which is not my case in this Arquillian test.

       

      Any tips?