如何在Tomcat启动期间禁用特定应用程序启动? [英] How to disable specific apps from starting during Tomcat startup?

查看:132
本文介绍了如何在Tomcat启动期间禁用特定应用程序启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司正在准备一个新的生产箱,而现在正在运行。我想主动地在新的生产箱的Tomcat容器中安装应用程序,但是希望将其禁用(类似于Websphere中存在的功能) - 这非常重要,因为一些应用程序会轮询数据库中的数据并启动应用程序会干扰当前的生产部署。它们将在生产切换时启用。



我该如何实现?任何见解将不胜感激。

解决方案

您可以在webapp内重新命名de WEB-INF目录,您不需要在启动tomcat之前自动启动一些其他名称,如 Disabled-WEB-INF



之后,如果您希望启动该应用程序,而tomcat正在运行,只需将目录重命名为WEB-INF。


My company is preparing a new production box while the current one is running. I would like to proactively install applications in Tomcat container of the new production box but would like to keep them disabled (similar to the feature present in Websphere) - this is very important because some of the applications poll for the data from the database and starting an application would interfere with current production deployment. They would be enabled at the time of production switch-over.

How would I accomplish this? Any insight would be greatly appreciated.

解决方案

You can simply rename de WEB-INF directory inside the webapp that you don't want to auto-start to some other name like Disabled-WEB-INF, before starting tomcat.

Later on, if you wish to start that app, while tomcat is running, simply rename back the directory to WEB-INF.

这篇关于如何在Tomcat启动期间禁用特定应用程序启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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