1 Reply Latest reply on Dec 12, 2014 6:50 PM by dzolo

    Add Resource on wildfly with arquillian

    fdcarli

      Hello, i need add a resource on the standalone.xml, before the application is deployed.

       

      Example:

            <subsystem xmlns="urn:jboss:domain:naming:2.0">

                  <bindings>

                      <simple name="java:global/name" value="teste" type="java.lang.String"/>

                  </bindings>

                  <remote-naming/>

              </subsystem>


      I found code below, but do not know how like to proceed


           @Deployment( order = 1 )

           public static Descriptor createDep1() {

           return Descriptors.create( ??? );

           }

       

      Please help me!

        • 1. Re: Add Resource on wildfly with arquillian
          dzolo

          Hi. If you are using embedded/standalone WildFly instance then you can create your own stanalone.xml with your resource and copy it to unpacked WildFly during app building. (example can be found here)

          If you are using remote WildFly then you can use wildfly-maven-plugin in order to configure your resource via Maven or you can use custom CLI WildFly scripts.