Posted on 2014-03-04
Hi - I need to refer properties file in context.xml. For each environment I have different database names and need to tell to java app to use environment specific properties.
I configured context.xml for each environment and every thing is working great.
The problem I am having is I have datasource name lmn and I need to configure the same name for prod and qat in context.xml. This is where I am having issues.
Can any one suggest best approach to configure datasource for each environment(dev,int,qat,prd)
All other property files I have are in environment specific folder and I am able to read all of the properties.
Any suggestions are welcome
Can we change userid and password and url dynamically in context.xml?