[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Migrating from GlassFish to Tomcat 7
From:       Daniel Mikusa <dmikusa () gopivotal ! com>
Date:       2013-08-26 12:11:28
Message-ID: 7FEFCB3E-EFF1-40AB-B2E9-3F7EB50234F7 () gopivotal ! com
[Download RAW message or body]

On Aug 26, 2013, at 7:52 AM, B W <bw20130822@gmail.com> wrote:

> Looks like catalina.properties it is !

+1 catalina.properties is great for simple things, and it's more portable.

One, not so common reason you might want to use setenv.sh is if you want to do \
something dynamic.  Since setenv.sh is a shell script, you could dynamically capture \
some value and store it in a system property.

Contrived Ex:

  CATALINA_OPTS="-Dhostname=`hostname`"

Dan


> On Thu, Aug 22, 2013 at 6:30 PM, Christopher Schultz <
> chris@christopherschultz.net> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> > 
> > B W,
> > 
> > On 8/22/13 4:30 PM, B W wrote:
> > > What is the advantage to using catalina.properties vs setenv.sh?
> > 
> > If you use setenv.sh, then those system properties will only be
> > available if you use the Tomcat scripts to launch. If you use jsvc or
> > the Microsoft Windows Service Wrapper, they will not be available.
> > 
> > Using catalina.properties should allow you to set system properties
> > that will be loaded regardless of how you launch Tomcat.
> > 
> > - -chris
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.14 (Darwin)
> > Comment: GPGTools - http://gpgtools.org
> > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> > 
> > iQIcBAEBCAAGBQJSFpD/AAoJEBzwKT+lPKRYvbEQALWOa8chxGNMyDTb7032vnnX
> > iMgD0bdTyfXKHQUpseCikP185gksIXdBajxHKNyKH6lDEJLyl4udHg8dtAAPPlmZ
> > FvveRHCuyxlcZXg3qAe7Zsnd83fPVMa5F/ysGDUHUbNIKSAq8YiQtFsnujLRQrKY
> > Y+LZdoDMFbS6wNohBaxIQZtsjiOWu+/JblUAcqwOZ6JV0ZhCl6vhtGgp10UFxsjx
> > BRz5hE6K8vZcYt2zvVGqB9+Kjy7APIPBB1TJTnp8ieA5Y6+Va/6wCtI6ve1FsH83
> > aj4aEzOejHx5x7shGvz8yr8LfbGGBfRBvHVwVteicffAiBvEPx+5C/t29nR0xJcn
> > wvojyA5oSD5/O+W24mrgf27fmsY8JrgivZsnaSPyx2dHp31bbhkfQz7+FI0Hoh02
> > jNzNRoRKECOtmxWH/qI9zd9igOa3Merve1e6x0JWtoT9UOY7YFZRRl0jwDoTM75a
> > Ogs0c/kKOlpb57/8iXpffMl9LHD54tCD+XgVb+Dlln7+aSic56eCx+edGqm241fe
> > bWtB9o8nOsjzERjwwlkFFyZsXo1cfJza2LOlNSrsJjx+10KT+3cGxwBt+ywn5Q5j
> > AhYX/YO8WkdCxei2DcZleFYzuuUyInmHnezoxDHvPfZSOzoPvbXfzyZQP8flSvgQ
> > /Q2Pj4X4p65yhV/7s4bj
> > =h6mX
> > -----END PGP SIGNATURE-----
> > 
> > ---------------------------------------------------------------------
> > 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic