Suppose I have a single WAR deployed in a single Tomcat instance. The WAR contains two servlets: one for client requests and another for administration. Now I would like to run those servlets on different ports. Can I do that using the same single WAR and single Tomcat instance ?
You may be able to make tomcat listen on two different ports for HTTP but there is only one container. So I don't think so.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.