2 Replies Latest reply on Jun 5, 2018 3:44 AM by aiya0933

    Wildfly 11 - Deployment Folder

    aiya0933

      Hi all,

       

      I have three applications to deploy in 1 wildfly application server on the same instance. In the default deployments folder, can we create three application folders file to store the .war files?

       

      C:\wildfly-11.0.0.Final\standalone\deployments\App1\app1.war

      C:\wildfly-11.0.0.Final\standalone\deployments\App2\app2.war

      C:\wildfly-11.0.0.Final\standalone\deployments\App3\app3.war

       

      1) Will Wildfly be able to read and deploy the war files accordingly? The intent to do so is to allow each app developer to access his/her own war files without affecting others (Grant access at the folder level)

      2) If the above is feasible, is there a need to do additional configuration to the standalone.xml files to reference the deployment folders?

       

      Appreciate any kind advice.

       

      Tks & Rgds,

      Angela

        • 1. Re: Wildfly 11 - Deployment Folder
          abhijithumbe

          You have to define configure custom deployment directory for each application directory(App1,App2,App3). Refer below steps for that:

           

          1. Define directory location of App1,App2,App3

            <paths>
                <path name="app1.dir" path="/path/to/applications1"/>

                <path name="app2.dir" path="/path/to/applications2"/>
            </paths>

           

          2. Configure deployment scanner

            <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">

                <deployment-scanner path="customDeployDir1" relative-to="app1.dir" scan-interval="5000"/>

                <deployment-scanner path="customDeployDir2" relative-to="app2.dir" scan-interval="5000"/>

            </subsystem>

          1 of 1 people found this helpful
          • 2. Re: Wildfly 11 - Deployment Folder
            aiya0933

            May I enquire on the following:

             

            1) where should i define the directory location of App1, App2, App3 in standalone.xml?

            Is this under <subsystem> </subsystem>

             

            2) Under deployment scanner, what does "customDeployDir1" refer to?

             

            Appreciate your kind advice.