tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: Multiple instances of the same Tomcat version (was: svn commit: r1139381)
Date Sat, 25 Jun 2011 09:17:33 GMT
On 24.06.2011 22:22, Konstantin Kolinko wrote:
> 2011/6/24  <markt@apache.org>:
>> Author: markt
>> Date: Fri Jun 24 16:43:40 2011
>> New Revision: 1139381
>>
>> URL: http://svn.apache.org/viewvc?rev=1139381&view=rev
>> Log:
>> Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50949
>> Provide the ability to specify the AJP port and service name when installing Tomcat
using the Windows installer. This permits multiple instances of the same Tomcat version to
be installed side-by-side.
> 
> 
> It does not permit multiple instances, unless you are able to specify
> shutdown port as well.
> 
> Though I suspect that for running as a service that value can be "-1", thought
> 
> 1) I have not tested whether that is true lately.
> 
> 2) if Tomcat is installed to be integrated with an IDE,  e.g. to be
> used with Eclipse IDE, an explicit shutdown port will be needed.  That
> is because when you create a "Server" in Eclipse, it copies
> configuration files from existing installation of Tomcat and later
> uses the port specified there to stopping launched Tomcat.

I don't know whether that is a good fit for this discussion, but I think
technically the nicest way is to choose a port range and a port
convention, for example:

- AJP: NN09
- HTTP: NN80
- Shutdown: NN05
- HTTPS: NN43

and let the user choose NN or NNN. In server.xml it could be
port="${portBase}80" etc. and in the startup options -DportBase=NN.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message