I have context.xml
<Context>
<Resource name="jdbc/XX" auth="Container" type="javax.sql.DataSource"
maxActive="50" maxIdle="30" maxWait="10000"
username="postgres" password="xxxx"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/test?createDatabaseIfNotExist=true"/>
</Context>
I want to assign values for username , password and url dynamically. Values should be fetched from config properties file.
username, password are encrypted in Config properties.
How to get values dynamically, decrypt those properties and assign it in context.xml?