tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kerber <dcker...@verizon.net>
Subject Re: Multiple tomcat containers or instance on same servers
Date Wed, 01 May 2013 22:46:39 GMT
On 5/1/2013 1:05 AM, Oke Akinola swisstopo wrote:
> The new application I wanted to add to tomcat environment actually required its own container.
My understanding so far is configuring multiples applications, even with different listening
ports  in a single installation is still one container. Once a different container is required,
there has to be a second tomcat installation instance.

Assuming when you say "different container", you mean the same thing 
that Tomcat does by "container", then no, that's not necessary.  You can 
set up multiple apps with complete isolation between them even with a 
single installation of TC.

Dave


>
> Please feel free to correct me.
>
> David's offer to put something together will be appreciate for the none tomcat specialist.
>
>
>
> Sent from my Windows Phone
> ________________________________
> From: David Kerber
> Sent: 01.05.2013 02:45
> To: Tomcat Users List
> Subject: Re: Multiple tomcat containers or instance on same servers
>
> On 4/30/2013 4:34 PM, chris derham wrote:
>>> Thanks for all your feedbacks.
>>>
>>> Is multiple versions supported or all instances have to be the same build.
>>
>> You can have it any which way you wish, e.g. single tomcat in single
>> catalina_home with multiple instances each with own catalina_base, or
>> multiple versions of tomcat each in own catalina_home each with one or
>> more instance each with own catalina_base. You can setup a right mess
>> if you wish...
>
> Yeah, what he said...
>
> I have done it both ways, depending on the requirements of the apps
> being hosted.  I prefer to have only one instance of TC installed, but
> have at times had multiple versions running during transition periods.
>
>
>>
>>>> I thought sure that the Tomcat Windows Service page of the users' guide,
>>>> but it is /not/ there:
>>>> http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
>>>>
>>>> I wonder if there are any heavy Microsoft Windows users that could
>>>> offer to write a section on Multiple Tomcat Instances specifically
>>>> with Microsoft Windows Services. The file RUNNING.txt only explains
>>>> how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
>>>> says nothing about how to configure Tomcat's service runner to point
>>>> to one (other than inferring that one ought to set CATALINA_HOME and
>>>> CATALINA_BASE appropriately).
>>>>
>>>> For instance, it's probably important to give the services distinct
>>>> names ;)
>>
>> The only things that seem to be missing are
>>
>> a) set CATALINA_HOME and CATALINA_BASE before running service.bat
>> b) when run service.bat, specific a unique service name
>> c) you need to copy some files around to allow the CATALINA_BASE to be
>> different from each other, e.g. port config
>>
>> e.g.
>>
>> set CATALINA_HOME=c:\tomcat
>> set CATALINA_BASE=c:\tomcat\instances\instance1
>> service install tomcat1
>>
>> Then to install instance two, just run
>>
>> set CATALINA_BASE=c:\tomcat\instances\instance2
>> service install tomcat2
>>
>> If anyone else wants to chip in with any relevant additions, let me
>> know. I might be able to have a look at updating the documentation
>> page later, but being as I'm a developer my linguistic skills have
>> never really been approved off so not sure any changes will be
>> approved :-)
>>
>> HTH
>>
>> Chris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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


Mime
View raw message