Prefacing this with I'm not a java developer.
I have a context.xml file with various passwords and other credentials that need to be moved to another file. I've gotten this to work with entities but I'm wondering if there is a way to do this so only the specific value is loaded from the separate file instead of the entire resource or environment. For example, if I have
<Environment name="password" value="secretpassword" type="java.lang.String" override="false" />
I can replace the entire line by putting it in the 2nd file and loading it as an entity. Is there a way to do something like
<Environment name="password" value="$STOREDPASSWORD" type="java.lang.String" override="false" />
where the 2nd file has
STOREDPASSWORD=secretpassword
This info needs to be portable in a new file so I'm not able to put this in catalina.properties. I don't want to make any app changes; only config file includes or substitutions.