Closed belyaev-andrey closed 4 years ago
This is not true, it's all been tested.
In individual files (with a ".xml" extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The context path and version will be derived from the base name of the file (the file name less the .xml extension). This file will always take precedence over any context.xml file packaged in the web application's META-INF directory.
As per forum post:
The following chapter cuba documentation, (point 8) states that production database connection properties can be provided using a specific “context.xml” file stored in /var/lib/tomcatXXX/conf/Catalina/localhost/ where tomcatXXX should equal to name of the tomcat service.
This configuration didn’t made the job on my linux box, i had to store the specific “context.xml” in $CATALINA_BASE/conf/[enginename]/[hostname] as stated in tomcat documentation.