Breadcrumbs

UMM Configurations

Follow these steps for UMM configuration:

  1. Navigate to <installation-dir>\hybrid-chat\core\tomcat\apache-tomcat-8.5.47\webapps\umm\WEB-INF\classes 

  2. Open application.groovy file with any text editor.

  3. Update and save configurations, there is no need to restart any service in this case

Configuration

Umm configuration file contains a lot of code and configurations, only relevant configuration are relevant portion of configuration file is listed here. Please be careful when updating this file not to change any irrelevant thing in it:

Groovy
dataSource {
    pooled = true
    dbCreate = "update"
    url = System.getenv("UMM_DB_URL")?:"jdbc:jtds:sqlserver://192.168.1.45/ChatServerQA;instance=BNPTEST"
    driverClassName = System.getenv("UMM_DB_DRIVER")?:"net.sourceforge.jtds.jdbc.Driver"
    dialect = System.getenv("UMM_DB_DIALECT")?:"org.hibernate.dialect.SQLServer2008Dialect"
    username = System.getenv("UMM_DB_USER")?:"sa"
    password = System.getenv("UMM_DB_PASS")?:"Expertflow464"
    properties {
        jmxEnabled = true
        initialSize = 5
        maxActive = 50
        minIdle = 5
        maxIdle = 25
        maxWait = 10000
        maxAge = 10 * 60000
        timeBetweenEvictionRunsMillis = 5000
        minEvictableIdleTimeMillis = 60000
        validationQuery = "SELECT 1"
        validationQueryTimeout = 3
        validationInterval = 15000
        testOnBorrow = true
        testWhileIdle = true
        testOnReturn = false
        jdbcInterceptors = "ConnectionState;StatementCache(max=200)"
        defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED
    }
}


Groovy
primaryFinesseIP=System.getenv("PRIM_FINESSE_IP")?:"https://finesse115.ucce.ipcc:8445"
secondaryFinesseIP=System.getenv("SEC_FINESSE_IP")?:"https://finesse115.ucce.ipcc:8445"
finesseUser=System.getenv("FINESSE_USER")?:"admin"
finessePass=System.getenv("FINESSE_PASS")?:"Expertflow464"
base_url=System.getenv("REDIRECT_BASE_URL")?:"http://localhost:8080"

The following table explains these parameters


Configuration Variable

Line Number

Default Value

Expected Value

Limitations

Description

1

UMM_DB_URL

4

jdbc:jtds:sqlserver://192.168.1.45:1433/umm for default instance,
Use following DB_URL value for named instance of MSSQL Server

jdbc:jtds:sqlserver://serverurl;instance=INSTANCE_NAME;DatabaseName=umm

String

/umm at the end of string is the database name you created. Write host path in place of 192.168.1.45:1433 of default value


2

UMM_DB_USER

7

sa

String


MSSQL Server username

3

UMM_DB_PASS

8

Expertflow464

String


MSSQL Server password

4

PRIM_FINESSE_IP

105

https://finesse115.ucce.ipcc:8445

String


Primary Finesse IP

5

SEC_FINESSE_IP

106

https://finesse115.ucce.ipcc:8445

String


Secondary Finesse IP

6

FINESSE_USER

107

admin

String


Finesse cfadmin User Name

7

FINESSE_PASS

108

Expertflow464

String


Finesse cfadmin password

8

REDIRECT_BASE_URL

109

http://localhost:8080

String


This is FQDN of Hybrid Chat, UMM frontend uses this path to access UMM APIs

4. Navigate to <installation-dir>\hybrid-chat\core\tomcat\apache-tomcat-8.5.47\webapps\umm\base\assets

5. open config.json in text editor.

6. Update the following variable and save the the file. Then restart the tomcat service. 

9

GAT_URL

1

https://localhost:8443

or

https://<fqdn-reverse-proxy>

String


This is URL of tomcat. 
OR
Enter the URL of app-gateway

In the method of microservices go to the umm section line number 37, and 38 and make the following changes:

10

ipAddress

37

http://127.0.0.1

Number


this is the loopback ip of the host for umm

11

port: System.getenv("UMM_PORT")?

38

8081

Port


This is the http port of tomcat on which UMM is hosted

In the method of microservices go to the ecm section line number 56, and 57 and make the following changes:

12

ipAddress: primaryIP

56

http://127.0.0.1

Number


this is the loopback ip of the host 

13

port: System.getenv("ECM_PORT")?:

57

8081

Port


This is the http port of tomcat

In the method of microservices go to the eabc section line number 66, and 67 and make the following changes:

14

ipAddress: primaryIP

66

http://127.0.0.1

Number


this is the loopback ip of the host 

15

port: System.getenv("EABC_PORT")?:

67

8081

Port


This is the http port of tomcat


7. Add the following System environment variables.

UMM_DB_URL
UMM_DB_PASS


image2020-9-30_18-13-26.png