I have a DataSource configuration in context.xml. Is it possible not to hard-code database parameters in that file? For example, use an external properties file, and load th
If this is Tomcat 7, you can write your own org.apache.tomcat.util.IntrospectionUtils.PropertySource implementation read variables written like "${...}" in context.xml. You'll need to set the system property org.apache.tomcat.util.digester.PROPERTY_SOURCE to point to your PropertySource implementation.