AS中的热部署位置

AS中的热部署位置

本文介绍了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 mCan 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:

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

08-13 18:26