重启tomcat时如何控制webapp部署顺序 [英] How to control webapp deployment order when restarting tomcat

查看:17
本文介绍了重启tomcat时如何控制webapp部署顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在单个 tomcat 5.5 容器中部署了许多战争项目.它们通过 http 使用彼此的服务,因此我需要确保在 Tomcat 重新启动时,它们按特定顺序部署.在谷歌搜索了几个小时后,没有运气.

I have a number of war projects deployed in a single tomcat 5.5 container. They consume each other's services through http, and thus I need to make sure that, when Tomcat is restarted, they are deployed in an specific order. After a couple of hours googlin' around, no luck.

有人知道如何设置 tomcat 5.5 以在重启时以特定顺序部署战争吗?

Anyone knows how to setup tomcat 5.5 to deploy wars on restart in an specific order?

提前致谢

推荐答案

坦率地说,你需要重新审视你的架构.

Frankly speaking, you need to revisit your architecture.

您的应用程序之间的耦合过于紧密.

Your applications are too tightly coupled with each other.

您可能应该有一些控制器应用程序并让所有应用程序向其注册或类似的东西.

You should probably have some controller application and have all applications register with it or something like that.

这只是在不了解您的具体问题的情况下瞎猜的

This is just a shot in the dark without knowing too much about your specific problem

这篇关于重启tomcat时如何控制webapp部署顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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