OIPA Setup - TomEE

  1. Create a directory on the TomEE server to store various configuration files for OIPA (i.e., /%Tomee_Home%/shared or D:\tomee\shared).
  2. Create subdirectories inside the directory from Step 1 called conf and lib.
  3. Copy PASJava-tomEE.war file from the OIPA distribution zip file into the webapps subdirectory of TomEE server (Ex : /%Tomee_Home%/webapps or D:\tomee\webapps).
  4. Rename the war to PASJava.war.
  5. Copy the following configuration files from OIPA distribution zip/conf directory into the \shared\conf directory under TomEE server:
    • coherence-cache-config.xml
    • coherence-config.xml
    • PAS.properties
    • EDKeyValue.dat
    • logging.properties
  6. Copy the following files from the OIPA distribution zip/lib directory into the shared\lib directory:
  7. Use a text editor to open the PAS.properties file that you just copied to the server. The PAS.properties file contains properties for Oracle, SQL Server and DB2 database types, with the Oracle settings active by default. The inactive settings are commented out with a '#' character at the start of each line. To change a setting, remove the '#' from the required property setting, and insert it at the beginning of the setting you want to de-activate.

  8. The properties setting must match the type of database being used.

    • application.databaseType
    • jpa.databasePlatform

    Note: Refer to the latest System Properties document in the Oracle Insurance Policy Administration Documentation Library published on the OHC for a complete list of all properties and allowed values.

  9. Identify the default locale in the PAS.properties file. The locale selected will determine the translation that is loaded in the database for OIPA when it launches.

    • application.defaultLocale

  10. The property application.encryptDecryptFilePath should point to the EDKeyValue.dat in the shared/conf

  11. If using an Oracle or Microsoft SQL Server database, please skip this step. If using a DB2 database, you will need to modify the PAS.properties file to include configuration for case-insensitive searching. Modify the PAS.properties file to include the following line:

    • search.field.text.caseInsensitive=true

  12. Use a text editor to open the logging.properties file that you just copied to the server.

    • Edit the path mention for property "java.util.logging.FileHandler.pattern" with new application log location i.e. if application log location is /home/OIPA/logs then set this value as java.util.logging.FileHandler.pattern = %h/OIPA/logs/oipa%u.log. Also same time make sure that directory is created and has r/w permission.

  13. Extension classes/jars developed using OIPA extension interfaces should be copied to PASJava-.war/WEB-INF/lib before copying PASJava.war to the war subdirectory. This is required for the extensions to work that an application like OIPA need to run.

Set Environment Variables - TomEE

For Windows deployment we need to create setenv.bat file in the bin folder of extracted TomEE directory.

For Linux deployment we need to create setenv.sh file in the bin folder of extracted TomEE directory.

The following configuration needs to be placed in the setenv.bat file for Windows environment.

Windows Arguments

set CATALINA_OPTS=-Xms128m -Xmx1024m -XX:+UseG1GC
-Dtangosol.coherence.cacheconfig=C:/Servers/TomEE/OIPAInstance/shared/conf/coherence-cache-config.xml
-Dtangosol.pof.config=com-adminserver-pas-web-pof-config.xml
-Dtangosol.coherence.override=C:/Servers/TomEE/OIPAInstance/shared/conf/coherence-config.xml
-Dtangosol.coherence.distributed.localstorage=true
-Djava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.autodiscovery=true
-Dcom.sun.management.jmxremote.port=5588

 

Note: Each argument should be separated by space and not the next line (Enter)               

For Linux Env in setenv.sh

Linux Arguments

export CATALINA_OPTS="-Xms128m -Xmx1024m -XX:+UseG1GC
-Dtangosol.coherence.cacheconfig=/Servers/TomEE/OIPAInstance/shared/conf/coherence-cache-config.xml
-Dtangosol.pof.config=com-adminserver-pas-web-pof-config.xml
-Dtangosol.coherence.override=/Servers/TomEE/OIPAInstance/shared/conf/coherence-config.xml
-Dtangosol.coherence.distributed.localstorage=true
-Djava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.autodiscovery=true
-Dcom.sun.management.jmxremote.port=5588"

Note: To run the application in debug mode, add the following in the setenv file:

Debug Argument
-agentlib:jdwp=transport=dt_socket,address=1043,server=y,suspend=n