GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Two listners for single tomcat instance. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Two listners for single tomcat instance." Watch "Two listners for single tomcat instance." New topic
Author

Two listners for single tomcat instance.

Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Hi ,

Can I configure two listners in a single tomcat instance.

Actually the exact requirement is that I have 5 web applications and I want that one connector should listen for requests on port 8080 for web application A,B,C and another listner should be configured for port 80 for the ohter two web applications. (D,E).


Rahul Bhattacharjee
LinkedIn - Blog
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
See this documentation on Tomcat HTTP Connectors. It appears that you will be able to do this by configuring one connector for each port. (Warning, I have never done this)

Let us know how it turns out.

Bill
 
Consider Paul's rocket mass heater.
 
subject: Two listners for single tomcat instance.