how to use environment variables in a .properties or a xml file
in my setenv.sh file
export JAVA_OPTS="$JAVA_OPTS -Dmyvar=${VAR}"
now I can use myvar inside a properties file or better, directly within a xml file since the variable is now available with tomcat context
<Resourceuser="${myvar}".../>