Hot deployment location in Wildfly 8 AS

北城以北 提交于 2019-12-06 15:40:41

The full documentation is found here:

https://docs.jboss.org/author/display/WFLY8/Deployment+Scanner+configuration

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!