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 :

  1. 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. the site_business-<version>.war file has been expanded in the webapps directory), then modify the content of the file site_business.properties, e.g. CATALINA_HOME/site-business/webapps/site_business-<version>/WEB-INF/classes/META-INF/properties/site_business.properties and restart site-business, upon which site-business will attempt to connect to the new database.

  2. Permanent change.

    For a change to become effective when site-business is redeployed, the site-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.