Configuring the PostgreSQL Database
To configure the PostgreSQL Database, perform the following steps:
- Procedure
-
Start the PostgreSQL Database.
-
Update the properties from the below table in
$PSC_HOME/ebx.properties. There are multiple occurrences of each property, you must comment all the below properties and there must be a singleebx.persistence.factoryproperty which points to the PostgreSQL database.Operation PostgreSQL ebx.persistence.factory postgresql ebx.persistence.url Comment it ebx.persistence.driver Comment it ebx.persistence.user Comment it ebx.persistence.password Comment it -
Run the
$PSC_HOME/db/postgresql/ install/doallscript. This creates the Database schema. -
Add the below Datasource resource entry in the
context.xmlof Apache Tomcat.<?xml version='1.0' encoding='utf-8'?> <Context> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource> <Resources cachingAllowed="true" cacheMaxSize="100000"/> <JarScanner scanClassPath="false" /> <Resource name="jdbc/EBX_REPOSITORY" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" driverClassName="${database.driverclass}" url="${database.url}" username="${database.username}" password="${database.password}" /> </Context> -
Update the driverClassName, URL, username, and password.
-
Copy the
postgresql-42.2.11.jarfile to Tomcat lib directory.