-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konstantin,

On 10/16/2014 11:52 AM, Konstantin Kolinko wrote:
> 2014-10-16 22:11 GMT+04:00  <vince.w...@thomsonreuters.com>:
>> Hello I'm coming back to Tomcat after years using GlassFish. The
>> little that I ever understood of Tomcat 3, 4 and 5 is now
>> decidedly rusty so I've been reading Tomcat 7's RUNNING.txt with
>> interest.
>> 
>> The section under the heading: Advanced Configuration - Multiple
>> Tomcat Instances Looks interesting to me even though I have no
>> desire to run multiple instances.
>> 
>> Configuring CATALINA_HOME and CATALINA_BASE to be separate
>> directories looks to me like such a winning idea that I'm left
>> wondering, why the default TOMCAT installation puts all that
>> stuff in one directory ?
>> 
>> I have not looked to see if Tomcat 8 separates them.
> 
> 1) The default distributive is friendly to newbies. If you just
> run startup.sh (startup.bat) it assumes that CATALINA_HOME == 
> CATALINA_BASE == its parent directory and starts successfully.
> 
> If you separate "home" and "base" you have to pass them as
> environment variables to the scripts. That requires a bit more of
> configuration from the users.
> 
> 2) On productive systems you usually configure CATALINA_BASE once 
> (your site) and install a new CATALINA_HOME with each point
> release.
> 
> Even if some files such as "webapps" are not used in the home 
> directory in this configuration, it may be useful to have them for 
> reference.
> 
> http://tomcat.apache.org/migration.html#Before_upgrading_or_migrating
>
> 
http://tomcat.apache.org/migration-8.html#Upgrading_8.0.x
> 
> 3) Many 3rd parties (Linux vendors) redistribute Tomcat with
> separate home and base directories.
> 
> Best regards, Konstantin Kolinko

I think that the combined approach is useful in a number of scenarios.

1. Newbie-friendly

Just unzip (untar, install) and go. With the installer I suppose you
could have it query where CATALINA_BASE and CATALINA_HOME are to be
placed, so the environment variables are constructed and placed in
setenv.(bat/sh).

If you use the archive rather than the installer, it's up to the user
to figure this out.

2. IDE-friendly

NetBeans works well with the combined approach. It even uses the
standard manager-script role for deployment.

Eclipse is not quite as nice, but again using the combined version
makes integrating Tomcat with Eclipse as painless as it can be.

IntelliJ seems to fit in between NetBeans and Eclipse in terms of
Tomcat integration friendliness, and I don't know how it would be
impacted by a default separation.

Most developers are not very comfortable with administrative tasks (as
most administrators are not very comfortable with developer tasks), so
placing an additional barrier for developers would not be welcomed by
many.

3. Differing install scenarios

Finally, I can see a scenario somewhat like the following:

a. explode a standard Tomcat distribution
b. add a single web application - one per Tomcat
c. package the result back up
d. write a Chef cookbook for deploying this to 100s of machines

For a large environment with clustered applications, this may be the
way to go. It's facilitated (somewhat) by the combined approach.

. . . just some ramblings
/mde/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUQBdSAAoJEEFGbsYNeTwtqLAIAJvDJxiS1eOHtV1XF1Dfezr1
u+Kom0QeROZ8XEKfcgYvS6Ig72UOFEsREdMvbUv6YfAGP9zZPagb4hvNfAsE4M3Q
9zzpgZovNXl94ZEDi9shcJqJg+oxFVvrzNHPDMryLIou1YmNJdOSbszeC4zgIge2
grYP4xqlMO8VqUTT1eNVbrtoDyEdjGxAJB9BkR+lYPw+tSqFq9u8C2EtRD2lBn7f
EA97uE5qYLtoj69sI6ThRc26ox2ZtSiWv0ghwanJP8FhtnT7lLd47A+2GndFbxhx
gSRa0z/AHM9x0qI71VyoJfKL41vZGaDZmuPDLU//BF429LfeYzEBOfVSIAmG9R0=
=/suK
-----END PGP SIGNATURE-----

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


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

Reply via email to