site-business
¶
Changing database connectivity¶
There are two ways to change the database connectivity, both of which can make use of the property file encryption if the data is sensitive :
Temporary change, i.e. the change will be overwritten on a subsequent redeployment unless the permanent change is undertaken.
If
site-business
has been deployed in the servlet container (e.g. thesite_business-<version>.war
file has been expanded in the webapps directory), then modify the content of the filesite_business.properties
, e.g.CATALINA_HOME/site-business/webapps/site_business-<version>/WEB-INF/classes/META-INF/properties/site_business.properties
and restartsite-business
, upon whichsite-business
will attempt to connect to the new database.Permanent change.
For a change to become effective when
site-business
is redeployed, thesite-business
source code file<ap_predict_online>/site-business/src/properties/database/site/site.database.properties
needs to be assigned the desired values, then the source code needs to be rebuilt and redeployed.