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

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

问题描述

我在一个tomcat 5.5容器中部署了一些战争项目。他们通过http消费对方的服务,因此我需要确保,当Tomcat重新启动时,它们以特定的顺序部署。经过几个小时的googlin,没有运气。



任何人都知道如何设置tomcat 5.5以特定的顺序重新启动战争?



提前感谢

解决方案

坦白说,你需要重新考虑你的架构。 >

您的应用程序彼此之间的紧密耦合。



您应该可以拥有一些控制器应用程序,并将所有应用程序注册它或类似的东西。



这只是黑暗中的一个镜头,不知道你的具体问题太多了。


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.

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

Thanks in advance

解决方案

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天全站免登陆