How to configure Tomcat connection strings globally?
Tomcat connection strings are configured on
/etc/tomcat/server.xml file, under <GlobalNamingResources> tag:
- Connect to the server via SSH;
/etc/tomcat/server.xmlfile with your preferred text editor;
- Add the following tag under <GlobalNamingResources> tag:
CONFIG_TEXT: <Resource type="javax.sql.DataSource"
Note: in case the Tomcat application needs additional connection strings, consider adding them as additional "resource types" under the GlobalNamingResources tag to the same file, and change their values accordingly.