Wildfly 8 AS中的热部署位置 [英] Hot deployment location in Wildfly 8 AS

查看:322
本文介绍了Wildfly 8 AS中的热部署位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JBoss 6 AS中,热部署位置是${JBOSS_HOME}/server/default/deploy,在这里我可以解压缩WAR或EAR并更改任何配置文件的内容,并且无需重启即可工作.

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.

类似地,在Wildfly 8 AS中,任何人都可以帮助我了解热部署位置.我尝试在${WILDFLY_HOME}/standalone/deployments文件夹中解压缩WAR,但没有拾取解压缩的WAR文件夹.它仅考虑扩展名为.war的文件.任何人都可以在同一方面帮助我.非常感谢.

Similarly, in Wildfly 8 AS, can anyone help me to know about the hot deployment location. I tried unpacking WAR in ${WILDFLY_HOME}/standalone/deployments folder but it is not picking up the unpacked WAR folder. It considers file only with .war extension. Can anyone help me on the same. Many thanks.

此外,如果wildfly-maven-plufgin的用法有很好的指导,请分享 任何人都可以在同一方面帮助我.非常感谢.

Also, if there is a good guide on usage of wildfly-maven-plufgin, please share m Can anyone help me on the same. Many thanks.

推荐答案

完整文档位于此处:

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

要启用爆炸(解压)档案的自动部署,需要做的是在 standalone.xml 配置文件中将auto-deploy-exploded设置为true:

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>

这将每5秒扫描一次部署目录中是否有爆炸的档案.

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

如文档中所述,如果没有auto-deploy-exploded属性,则需要手动创建 .dodeploy 文件:

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

控制爆炸的部署内容是否应由扫描仪自动部署,而无需用户添加.dodeploy标记文件.除基本开发方案外,不建议将其设置为"true",因为没有办法确保在内容更改期间不会进行部署.

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.

这篇关于Wildfly 8 AS中的热部署位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆