简体   繁体   English

Wildfly 8 AS 中的热部署位置

[英]Hot deployment location in Wildfly 8 AS

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 it works without restart.在 JBoss 6 AS 中,热部署位置是${JBOSS_HOME}/server/default/deploy ,我可以在那里解压 WAR 或 EAR 并更改任何配置文件的内容,并且无需重启即可工作。

Similarly, in Wildfly 8 AS, can anyone help me to know about the hot deployment location.同样,在Wildfly 8 AS中,谁能帮我了解一下热部署位置。 I tried unpacking WAR in ${WILDFLY_HOME}/standalone/deployments folder but it is not picking up the unpacked WAR folder.我尝试在${WILDFLY_HOME}/standalone/deployments文件夹中解压 WAR,但它没有打开解压的 WAR 文件夹。 It considers file only with .war extension.它只考虑带有 .war 扩展名的文件。 Can anyone help me on the same.任何人都可以帮助我。 Many thanks.非常感谢。

Also, if there is a good guide on usage of wildfly-maven-plufgin , please share m Can anyone help me on the same.另外,如果有关于使用wildfly-maven-plufgin的好指南,请分享 m 任何人都可以帮助我。 Many thanks.非常感谢。

The full documentation is found here:完整的文档可以在这里找到:

https://docs.jboss.org/author/display/WFLY8/Deployment%20Scanner%20configuration.html 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:要启用已分解(解压缩)档案的自动部署,您需要做的是在您的standalone.xml配置文件中将auto-deploy-explodedtrue

<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.这将每 5 秒扫描一次部署目录以查找分解的存档。

As stated in the documentation, without the auto-deploy-exploded property, you would need to manually create a .dodeploy file:如文档中所述,如果没有auto-deploy-exploded属性,您需要手动创建一个.dodeploy文件:

Controls whether exploded deployment content should be automatically deployed by the scanner without requiring the user to add a .dodeploy marker file.控制扫描器是否应自动部署展开的部署内容,而无需用户添加 .dodeploy 标记文件。 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.除了基本的开发场景外,不建议将此设置为“true”,因为无法确保在更改内容的过程中不会发生部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM