great!  thank you very much for your insight!

On 8/26/2014 10:08 AM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Igal,

On 8/26/14, 11:35 AM, Igal @ getRailo.org wrote:
hi Chris, thank you for your prompt response.

I should have clarified in my original email that:

1) I am running Tomcat as a Windows service
You can use CATALINA_HOME and CATALINA_BASE as environment variables
before running service.bat to install the service. You can also set
catalina.home and catalina.base properties using tomcatXw.exe (where X
is your Tomcat version).

2) my goal is to have something like this:

C:\Programs\Tomcat-conf  <== /conf folder goes here, unchanged with
an upgrade

C:\Programs\Tomcat-bin  <== /bin and /lib go here, updated when
there is a new point-release
Change this to:

C:\Tomcats\Tomcat-conf\conf
C:\Tomcats\Apache Tomcat 7.0.50
C:\Tomcats\Apache Tomcat 7.0.51

C:\> SET CATALINA_HOME=C:\Tomcats\Apache Tomcat 7.0.50
C:\> SET CATALINA_HOME=C:\Tomcats\Tomcat-conf
C:\> %CATALINA_HOME%\bin\service.bat [your options]

Now you can start your webapps deployed into
C:\Tomcats\Tomcat-conf\webapps using Tomcat 7.0.50. To switch to
Tomcat 7.0.51:

Step 0: Stop the existing Tomcat service

Then,
C:\> SET CATALINA_HOME=C:\Tomcats\Apache Tomcat 7.0.51
C:\> SET CATALINA_HOME=C:\Tomcats\Tomcat-conf
C:\> %CATALINA_HOME%\bin\service.bat [your options]

Now, restart the service.

you can even define different services to start the same webapps under
different Tomcat versions. (Don't try to start them at the same time,
though, unless you have changed all the port numbers to avoid conflicts).

from the README.txt/advanced that you cited I see that I can use
CATALINA_BASE for the Tomcat-conf folder above, and CATALINA_HOME
for the Tomcat-bin, and specifying the env values when installing
the service, as documented at
http://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html#Multiple_Instances

  do you think that this would work for a Windows service setup?
Absolutely, though must admit that I haven't actually done it myself.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJT/L71AAoJEBzwKT+lPKRY0lAP/0FvOYfypBQeJfHK7NjMh5Ni
q62sL/pNXPh5qA9tGjys1LtFiBNtIHPlu2KMJ+0PbXFLIy5/gOFJRQEeQDSmaLMy
DTv5JIGmrQcpKn5HUOwAbH94dSPxsgWBCUtgPoNlOo8BI76c2OUw+crCCxTfjFhE
lorQ7EXSp5r+lbA98EQehx9fRh84+CSwWN41fCQQsFf+Ne8ka6/Uara7Q7M72L9c
4jFJ0ZZeVbJ5tbAVa6RqiWUcx3JpUI94hO6lCootjr53ueoDUm41/1ufD25HGdDX
4imGecKMcLtMGuo+l7zW0rxXImA9muRpxMZp2er04/phLdhf+faCfqn4gdMvyV3I
Ld/PqZUJYLcnMwdtKN/VMQpVqKrA3o3HfPn6cfLr+WATEnAnLLtt53PM+SMoEydC
21BvdvGG8UJ0F4J6SkBk7+OUFlVE+7BpNb2LI0sDTrBoEmsbO/Cqua50cxy09ELq
xoXKImsL2UV9JbVi3oXMndoYiE0TH1dLSKR1nsiIpAoBJf1Wwtrlq4nDUeTBepUp
wwhs5Sq9PQFsCAzpAz1jzb0QURcAr3OpldjWe9p+npUFTevttRPsDfa8vn/Iw5NO
Vuep66WBSULFaFC8/G104xLVNN6Dx8fBIeKKF4294ScXH02MPSgemLzm4NlHzBTr
YzadOPLTpPxAXK/DaSx8
=qKao
-----END PGP SIGNATURE-----

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


--
Igal Sapir
Railo Core Developer
http://getRailo.org/


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

Reply via email to