tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Multiple instances of the same Tomcat version (was: svn commit: r1139381)
Date Fri, 01 Jul 2011 09:05:23 GMT
2011/6/25 Konstantin Kolinko <knst.kolinko@gmail.com>:
> 2011/6/25 Konstantin Kolinko <knst.kolinko@gmail.com>:
>>
>> Though I suspect that for running as a service that value can be "-1", thought
>>
>
> Sorry, I did not notice that shutdown port has already been changed.
> (I looked in the file, but did not notice that my "svn update" command
> had failed).
>
>>
>> 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.
>>
>
> Defining the port numbers as properties in catalina.properties does
> work. I did it once.
>
> But, because of the above quoted use case, I think that server.xml
> created by the installer should stay as close as possible to the one
> packed in a zip archive.
>
> That means to use 8005 by default and to be able to change it.
>
> One more feature to be added: to be able to do not install HTTP or AJP
> connector if it is not needed.
>
> Technically, I think the installer can print the whole <Connector>
> element by itself instead of printing just the port.  (If user choses
> not to install the connector, the same text can be printed as an XML
> comment).
>
> (...)

One more idea:
maybe generate server_1.xml etc. at build time from conf/server.xml
E.g. with
http://ant.apache.org/manual/Tasks/replaceregexp.html

Best regards,
Konstantin Kolinko

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


Mime
View raw message