What is the best way to deploy an app with datasource both in development and in production environments?
It is recommended to use META-INF/context.xml to specify Tomcat context but I don't understand how should I specify datasource in context.xml:
it's unsafe to put database password in context.xml which can be viewed by all;
how do I maintain two different datasources for production and devel mode?
How do you solve this problem?