Hot deployment location in Wildfly 8 AS

后端 未结 1 863
猫巷女王i
猫巷女王i 2021-01-16 08:10

In JBoss 6 AS, the hot deployment location is ${JBOSS_HOME}/server/default/deploy where I can unpack WAR or EAR and change content of any configuration file and

相关标签:
1条回答
  • 2021-01-16 09:00

    The full documentation is found here:

    https://docs.jboss.org/author/display/WFLY8/Deployment%20Scanner%20configuration.html

    What you need to do to enable automatic deployment of exploded (unpacked) archives is to set the auto-deploy-exploded to true in your standalone.xml configuration file:

    <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
        <deployment-scanner 
            scan-interval="5000"
            relative-to="jboss.server.base.dir" 
            path="deployments"
            auto-deploy-exploded="true" />
    </subsystem>
    

    This would scan the deployments directory every 5 seconds for exploded archives.

    As stated in the documentation, without the auto-deploy-exploded property, you would need to manually create a .dodeploy file:

    Controls whether exploded deployment content should be automatically deployed by the scanner without requiring the user to add a .dodeploy marker file. Setting this to 'true' is not recommended for anything but basic development scenarios, as there is no way to ensure that deployment will not occur in the middle of changes to the content.

    0 讨论(0)
提交回复
热议问题