Re: Using Environment variables instead of Java -D properties for context.xml substitution

2018-01-23 Thread Algirdas Veitas
Thanks for the feedback. -Al On Tue, Jan 23, 2018 at 11:05 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Algirdas, > > On 1/23/18 6:11 AM, Algirdas Veitas wrote: > > Thanks for the quick

Re: Using Environment variables instead of Java -D properties for context.xml substitution

2018-01-23 Thread Algirdas Veitas
On Tue, Jan 23, 2018 at 8:40 AM, André Warnier (tomcat) <a...@ice-sa.com> wrote: > Hi. > > Ok, so let's recurse.. > > On 23.01.2018 13:27, Algirdas Veitas wrote: > >> Andre, my apologies for bringing up a topic that has been repeated ad >> nauseum. &

Re: Using Environment variables instead of Java -D properties for context.xml substitution

2018-01-23 Thread Algirdas Veitas
ties, until the next restart... Don't want to restart an old thread, so if preferred, we can stop the discussion. Thank you for your time. On Tue, Jan 23, 2018 at 6:50 AM, André Warnier (tomcat) <a...@ice-sa.com> wrote: > Hi. > > On 23.01.2018 12:11, Algirdas Veitas wrote: >

Re: Using Environment variables instead of Java -D properties for context.xml substitution

2018-01-23 Thread Algirdas Veitas
cat-7.0-doc/config/index.html > > > -Original Message- > From: Algirdas Veitas [mailto:apvei...@gmail.com] > Sent: Monday, January 22, 2018 4:02 PM > To: users@tomcat.apache.org > Subject: Using Environment variables instead of Java -D properties for > context.xml

Using Environment variables instead of Java -D properties for context.xml substitution

2018-01-22 Thread Algirdas Veitas
Hi, We have a context.xml under $TOMCAT_HOME/conf that looks like this: if we do something like this in setenv.sh, the substitution works great export DB_USERNAME=xyz export DB_PASSWORD=vvv export JAVA_OPTS="$JAVA_OPTS -DDB_USERNAME=$DB_USERNAME" export JAVA_OPTS="$JAVA_OPTS