Post-Installation Task 1: Copying Dependencies

Order Management Server does not ship with all the required 3rd party dependencies. A copyLib.sh script is provided under $OM_HOME/roles/<service-name>. This script runs under each service and copies the required dependencies.

  1. Provide the path from where the dependencies have to be copied. Do this by setting the following variables in copyLib.sh :
    • CONFIG_FILE_PATH
    • FTL_JAR_PATH (optional)
    • FTLGROUP_JAR_PATH (optional)
    • EMS_JAR_PATH_tibjms (optional)
    • EMS_JAR_PATH_jms (optional)
    • HIBERNATE_JAR_PATH
    The copyLib.sh must look similar to this:
    #!/usr/bin/env bash
     CONFIG_FILE_PATH=$OM_HOME/roles/configurator/standalone/config/configDBrepo.properties
     # for Postgres DB
     export FTLGROUP_JAR_PATH=$FTL_HOME/lib/tibftlgroup*.jar
     export FTL_JAR_PATH=$FTL_HOME/lib/tibftl*.jar
     export EMS_JAR_PATH_tibjms=/opt/tibco/ems/8.5/lib/tibjms.jar
     export EMS_JAR_PATH_jms=/opt/tibco/ems/8.5/lib/jms-2.0.jar
     export HIBERNATE_JAR_PATH=/opt/tibco/om/5.0/lib/hibernateLibs/*.jar
     DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
     echo "$DIR"
     for role in `find $DIR/../roles/*/standalone/bin/copyLib.sh`
     do      
             echo "##############Copying for $role ###################"
         sh $role    
     done
    

    Alternatively, you can set them as system properties. Each variable points to the .jar file to be copied. See the example in the copyLib.sh script for clarification.

  2. After setting the variables, run the copyLib.sh script.