A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Joined: Mar 07, 2004
Dec 11, 2006 06:31:00
How can we programatically decide on which port to run
I don't want to modify the server.xml but want to do it through
Joined: Dec 11, 2004
Dec 11, 2006 08:45:00
Tomcat binds to the port specified in server.xml when it starts up.
Webapplications are not loaded until Tomcat has started.
This means that it is not possible to change this setting from within your webapp.
Tomcat is an open source project so you are free to download and modify the actual Tomcat source code if you want to change it's default behavior.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: tomcat port
Apache + Tomcat Configuration Problem
mapping default page to domain name in tomcat without port number.in Ubuntu
Dynamic Setting of Server Port in Tomcat
Query about 'Port' Number??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015