Go to primary content
Oracle® Retail Integration Cloud Service Oracle® Universal Service Mapper User Guide
Release 19.1.000
F31998-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

7 Deploying USM Web Application

This chapter describes the steps you should take to deploy the Universal Service Mapper web application.

Preparing the Database for Universal Service Mapper

Before you begin installing Universal Service Mapper web application, make sure you have the database schema created for Universal Service Mapper.

Preparing the WebLogic Domain for Universal Service Mapper

  1. Follow the instructions in "Understanding the Installation Prerequisites" to install WebLogic 12.2.1.4 and create a domain.

  2. Start the Admin and Managed servers.

Deploying USM Web Application on the WebLogic Servers

To deploy the USM Web Application .ear file, do the following:

  1. Download UniversalServiceMapper19.1.000ForAll19.x.xApps_eng_ga.zip.

  2. Unzip the downloaded archive. The usm_home directory will be created under the current directory:

    unzip UniversalServiceMapper19.1.000ForAll19.x.xApps_eng_ga.zip
    

    This command extracts the archive. The relevant directories for the installation are shown below (There are more directories than what is shown):

    Directory Structure
  3. Open the usm-deployment-env-info.json file for editing:

    cd usm-home/conf/
    vi usm-deployment-env-info.json
    
  4. Modify the DataSourceDef and MiddlewareServerDef with information that is specific to your environment.

    By default, the JSON files should have placeholders for the USMDataSource. This connection is mandatory and needs to be available during deployment.

    The following table summarizes the values that needs to changed specific to environment:

    USMDataSource -> jdbcUrl Database details of the server where USM default data source schema is hosted.
    USMAppServer -> weblogicDomainName Name of the domain where the USM application is going to be deployed.
    USMAppServer -> weblogicDomainHome Absolute path to the domain. (starts from the root directory)
    USMAppServer -> weblogicDomainAdminServerUrl Admin server URL link of the domain.
    USMAppServer -> weblogicDomainAdminServerProtocol Web Protocol to be used in the domain. (Can be t3, unsecure or t3s, secure)
    USMAppServer -> weblogicDomainAdminServerHost Admin server host name. (domain.example.name.com)
    USMAppServer -> weblogicDomainAdminServerPort Admin server host port number
    USMAppServer -> weblogicDomainTargetManagedServerName Name of the managed server where USM will be deployed.
    USMAppServer -> USMAdminUiUrl Complete URL link that would be used to access the USM application. (http://<host_name>:<managed_sever_port>/)
    RibLgfAdminAppServer -> appAdminUiUrl Complete URL link to the deployed RIB-LGF application (http://<host_name>:<managed_sever_port>/)
    loadUsmData Flag to determine whether a new copy of the usm-data folder needs to be created when redeploying.

    [Note: This flag to be set to true when new template changes or USM engine changes are to be brought into effect during a redeployment.]



    Note:

    The alias names in the configuration files should not be changed.

    The following is an example configuration:

    "DataSourceDef":{
            "UsmDataSource":{
                 "dataSourceName":"UsmDataSource",
                 "dataSourceClass":"oracle.jdbc.pool.OracleDataSource",
                 "dataSourceJndiName":"jdbc/UsmDataSource",
                 "jdbcUrl":"jdbc:oracle:thin:@//dbhost.example.com:1521/pdborcl",
                 "jdbcUserAlias":"UsmDataSourceUserAlias",
                 "jdbcUser":"GET_FROM_WALLET",
                 "jdbcPassword":"GET_FROM_WALLET",
             }
    }
    "MiddlewareServerDef":{
    "UsmAppServer": {
                    "weblogicDomainName": "usm_domain",
                    "weblogicDomainHome": 
    "/u00/webadmin/oracle/middleware_1221/user_projects/domains/usm_domain", "weblogicDomainAdminServerUrl": "t3://localhost:7001", "weblogicDomainAdminServerProtocol": "t3", "weblogicDomainAdminServerHost": "localhost", "weblogicDomainAdminServerPort": "7001", "weblogicDomainAdminServerUserAlias": "usmServerAdminServerUserAlias", "weblogicDomainTargetManagedServerName": "AdminServer", "usmAdminUiUrl":"http://localhost:7001/usm/", "usmAdminUiUserGroup":"UsmAdminGroup", "usmAdminUiUserAlias":"usmAdminUiUserAlias", "usmAdminUiUser":"GET_FROM_WALLET", "usmAdminUiPassword":"GET_FROM_WALLET", "usmOperatorUiUserGroup":"UsmOperatorGroup", "usmOperatorUiUserAlias":"usmOperatorUiUserAlias", "usmOperatorUiUser":"GET_FROM_WALLET", "usmOperatorUiPassword":"GET_FROM_WALLET", "usmMonitorUiUserGroup":"UsmMonitorGroup", "usmMonitorUiUserAlias":"usmMonitorUiUserAlias", "usmMonitorUiUser":"GET_FROM_WALLET", "usmMonitorUiPassword":"GET_FROM_WALLET", } },"RibLgfAdminAppServer": { "appAdminUiUrl":
    "http://rtg:8022/rib-lgf-services-web/resources/publisher/publish", "appAdminUiUserAlias":"ribLgfAdminUrlUserAlias", "appAdminUiUser":"GET_FROM_WALLET", "appAdminUiPassword":"GET_FROM_WALLET", } }, "USMApplication":{ "appName":"universal-service-mapper", "loadUsmData":"false", "USMAppUses":[ "UsmDataSource", "UsmAppServer", { "RemoteAppServers":[ "RibLgfAdminAppServer" ] } ] }

    Note:

    Do not delete anything from the USMAppServer section of the JSON file.

  5. Run the deployer script to create the datasource and deploy USM Web Application.

    $cd usm-home/bin/
    $sh usm-deployer.sh -setup-credentials -deploy-usm-app
    
  6. Enter the parameter value that is prompted by the script.

  7. Bounce the WebLogic Server hosting the USM Web Application.

  8. Restrict Access to the USM home folder:

    $cd ..
    $chmod -R 700 usm-home
    

Redeploy the USM Web Application

If you have already configured the credentials and can use the same credentials (typically when redeploying the app), you can run the deployer with the -use-existing-credentials option as follows, and you will not be prompted for the credentials again for the deployment.

sh usm-deployer.sh -use-existing-credentials -deploy-usm-app

Set Custom Location for usm_data

When the usm_data folder is moved to a different directory (for example, /u01/retail) other than default user home itself, please follow the instructions below.

Before running the Deployer script:

  1. Export the Java Options:

    export _JAVA_OPTIONS="-Dweblogic.security.SSL.enableJSSE=true -Dweblogic.security.SSL.minimumProtocolVersion=TLSv1.2 -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/etc/ssl/certs/`hostname -f`_trust.jck -Dweblogic.security.CustomTrustKeyStoreType=JCEKS -Duser.home=/u01/retail"
    
  2. Add the same user home parameter in the setDomainEnv.sh file.

    setDomainEnv.sh File

Test the Deployment

After you deploy the server successfully, USM Web Application can be accessed using the following URL:

http://<host-server>:<managed-server-port>/usm/

Information on Roles and Groups in USM Application

USM Application has some basic roles and groups which are used to determine the type of user:

Roles

  • AdminRole - Users with this role have access to all the functions of the USM app. They can also setup the security permissions for other users.

  • OperatorRole - Users with this role have the ability to read, write and modify content in the service mapper files. However they will not have access to the admin functions and cannot see the admin tab at all.

  • MonitorRole - Users with this role can only view the data in the service mapping files.

Groups

  • UsmAdminGroup - Users that belong to this group can perform all operations

  • UsmOperatorGroup - Users that belong to this group can perform all operations except access the admin tab. The admin tab is not visible unless the user is logged in as an admin user.

  • UsmMonitorGroup - Users that belong to this group can only view the data.

Functions by Role and Group

The following table lists all the functions which can be performed by the roles and groups mentioned above:

Role Name Admin Role Operator Role Monitor Role
Group Name UsmAdminGroup UsmOperatorGroup UsmMonitorGroup
Admin Tab Functions Yes No No
Project Files Editing and Management Yes Yes No
Service Mapper Files Editing and Management Yes Yes No
Driver Editing and Management Yes Yes No
Configuration File Editing Yes Yes No

In the above table Editing and Management refers to all functions like create, delete, update and rename operations.

Mandatory Post Deployment Setup

After deployment, perform the following procedures.

Give Project Access to Users

There are a few changes that have to be made in the USM UI once the application is deployed to access the Projects and templates available.

To do that, follow the "Provide User Access to a Project" procedure in "USM User Interface" to give access to a specific user alias named usmAdminUiUserAlias.

Set the WMS Cloud and RIB-LGF Application Links

Once the USM UI is up, do the following:

  1. Log into the application and proceed to the Configurations tab.

  2. Click the Edit USM Configurations sub-tab in the Configurations tab.

  3. Select the external_env_info.json file from the drop down list box.

  4. Change the following field:

    {"name":"usm_url_key", "value": "[http://<hostname>:<port_number> /]"}
    
  5. Save the file.

  6. Next select the external_env_info.LogFireIntegration.json file from the drop down list.

  7. Change the following fields:

    {"name": "LogFire_Host_Url_Key", "value": "https://<hostname>:<port_
    number>/rgbu_test"}
    {"name": "RibLgf_Host_Url_Key", "value": "http://<hostname>:<port_number>/rib-lgf-services-web/resources/publisher/publish"}{"name":"rib_lgf_host_UrlSecurityPolicyKey", "value": "PolicyC"}
    

Revert Older Configurations

Steps:

  1. Navigate to the usm_data folder, where the older files are backed up in a folder with the latest Date and Time stamp.

    Example folder:

    /usm_data/backups/usm_data_31-05-19/service_mappers

  2. Replace the following files in /usm_data/ service_mappers.

    • external_env_info.json

    • external_env_info.LogFireIntegration.json

  3. Replace the following files in /usm_data/ service_mappers/dvm.

    • CompanyCode_dvm.LogFireIntegration.json

    • FacilityCode_dvm.LogFireIntegration.json

  4. Check whether USM is reflecting the changes.

  5. If USM is not reflecting the changes, restart the USM managed server.