[英]WAR in single Tomcat instance and multiple ports
Suppose I have a single WAR deployed in a single Tomcat instance. 假设我在单个Tomcat实例中部署了一个WAR。 The WAR contains two servlets: one for client requests and another for administration.
WAR包含两个servlet:一个用于客户端请求,另一个用于管理。 Now I would like to run those servlets on different ports.
现在,我想在不同的端口上运行那些servlet。 Can I do that using the same single WAR and single Tomcat instance ?
我可以使用相同的单个WAR和单个Tomcat实例吗?
You may be able to make tomcat listen on two different ports for HTTP but there is only one container. 您可能可以使tomcat在两个不同的端口上侦听HTTP,但是只有一个容器。 So I don't think so.
所以我不这么认为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.