Configuring the PostgreSQL Database

To configure the PostgreSQL Database, perform the following steps:

    Procedure
  1. Start the PostgreSQL Database.

  2. 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 single ebx.persistence.factory property 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
  3. Run the $PSC_HOME/db/postgresql/ install/doall script. This creates the Database schema.

  4. Add the below Datasource resource entry in the context.xml of 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>
  5. Update the driverClassName, URL, username, and password.

  6. Copy the postgresql-42.2.11.jar file to Tomcat lib directory.