I think that's exactly what red phoenix is asking. If so, I would suggest defining a second <Connector> inside <Service> element of your Tomcat's server.xml (under $CATALINA_BASE/conf), HOWEVER:

I discovered that under highly-concurrent loads a request to one port is interpreted by Tomcat two requests - one on each defined port; moreover the second HttpServletRequest in this pair ends up with an empty request map. i.e. let's say Tomcat has two connectors defined for ports 8081 and 8080. Then:
1.Client issues a request to port 8081.
2.Tomcat executes doPost() (or doGet()) twice, nearly simultaneously:
3.One HttpServletRequest has a correct ParameterMap (getParameterMap()); the second has a map with no elements.

Once again, the above happens rarely, and only when load is highly-concurrent.

-nikita

Marc Farrow wrote:
Are you saying that if a certain user logs in (one that has admin
privileges) that you want this person to run the same application on port
9090 while someone else with port 8080? Your question is confusing. Please
be more clear.




On 6/5/06, red phoenix <[EMAIL PROTECTED]> wrote:

I hava a web application with JSP and servlet,I want to deploy it using
Tomcat5,but I deploy it under two different port,such as 8080 and
9090,8080
port for general visit,and 9090 port for administrator visit. How to do
it?

Thanks in advance.





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to