讨论区 » AAS-V10企业版 »
【V10企业版】应用迁移:从中间件目录将应用移到外部路径
v10通过war包部署后会解压至domains/mydomain/appliactions目录,通常在domain.xml的配置为
<application context-root="/book" hot-loading-enabled="false" shared-lib-priority="appFirst" object-type="user" name="book" location="${com.apusic.aas.instanceRootURI}/applications/book/" hot-loading-delay-time="60">
<property name="webserviceDisabled" value="false"></property>
<property name="deploymentModules" value="war"></property>
<property name="hot-loading-enabled" value="false"></property>
<property name="BuiltinJSFEnabled" value="false"></property>
<property name="hot-loading-delay-time" value="60"></property>
<property name="BuiltinBeanValidationEnabled" value="false"></property>
<property name="BuiltinRESTFULEnabled" value="false"></property>
<property name="appLocation" value="${com.apusic.aas.instanceRootURI}/applications/__internal/book/book.war"></property>
<property name="defaultAppName" value="book"></property>
<property name="BuiltinCDIEnabled" value="true"></property>
<property name="isAutoDeploy" value="true"></property>
<property name="delegate" value="false"></property>
<property name="archiveType" value="war"></property>
<property name="BuiltinJSONPEnabled" value="false"></property>
<property name="BuiltinJPAEnabled" value="true"></property>
<property name="secretLevel" value="SECERT"></property>
<module name="book">
<engine sniffer="security"></engine>
<engine sniffer="web"></engine>
</module>
</application>
操作步骤
1:先将applications目录下的应用文件夹book拷贝到任意目录,我将其拷贝的D:\kingdee目录下
2:修改
domains/mydomain/config/domain.xml文件上述对应处,如果应用部署于自建实例中,请修改对应实例目录下的文件,加粗部分为修改后和新增内容
<application context-root="/book" hot-loading-enabled="false" shared-lib-priority="appFirst" object-type="user" name="book" location="
file:/D:/kingdee/book/" directory-deployed="true" hot-loading-delay-time="60">
<property name="webserviceDisabled" value="false"></property>
<property name="deploymentModules" value="war"></property>
<property name="hot-loading-enabled" value="false"></property>
<property name="BuiltinJSFEnabled" value="false"></property>
<property name="hot-loading-delay-time" value="60"></property>
<property name="BuiltinBeanValidationEnabled" value="false"></property>
<property name="BuiltinRESTFULEnabled" value="false"></property>
<property name="appLocation" value="
file:/D:/kingdee/book/"></property>
<property name="defaultAppName" value="book"></property>
<property name="BuiltinCDIEnabled" value="true"></property>
<property name="isAutoDeploy" value="true"></property>
<property name="delegate" value="false"></property>
<property name="archiveType" value="war"></property>
<property name="BuiltinJSONPEnabled" value="false"></property>
<property name="BuiltinJPAEnabled" value="true"></property>
<property name="secretLevel" value="SECERT"></property>
<module name="book">
<engine sniffer="security"></engine>
<engine sniffer="web"></engine>
</module>
</application>
3:重启中间件