有没有办法在tom 7和tom6中强制执行部署顺序? [英] Is there a way to enforce a deployment order in tom 7 and tom6 ?

查看:124
本文介绍了有没有办法在tom 7和tom6中强制执行部署顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我要部署多个war文件。 coll.war egg.war 等,每个人都会指定一个应用程序模块。

I have multiple war files to deploy, for example. coll.war, egg.war, etc., each one will specify an application module.

在我们的应用程序中,我有一些规范, coll.war 应首先部署,而rest必须按特定顺序部署,如。

In our application I have some specification that coll.war should deploy first and rest has to deploy in specific sequence such like.


  1. coll.war

  2. egg.war

  3. 小鸡。战争

有人可以帮助我做。

推荐答案

在服务器文件夹内的server.xml中,它会为你添加的每个战争添加一个条目。删除这些条目。

In server.xml inside servers folders it will add a entry for every war you added.Delete those entries.

然后创建xml文件其中包含以下内容,并在 conf\Catalina {server_name} 文件夹中按顺序命名xml文件。

Then create the xml files which have the following content and name the xml files in order inside the conf\Catalina{server_name} folder.

示例:

coll.xml

 <?xml version='1.0' encoding='utf-8'?>
 <Context docBase="${catalina.home}/deploy/collWAR" crossContext="true">
 </Context>

这篇关于有没有办法在tom 7和tom6中强制执行部署顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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