Installation

Externalizing Oasis Properties for Tomcat in Linux

Externalizing Oasis Properties

Oasis properties on Linux require a strategic approach to externalizing key settings. This guide provides a step-by-step walkthrough for setting up the extprop directory in the 'ovaledge' folder, editing the 'oasis.properties' file, and creating essential files to integrate Oasis properties with Tomcat on a Linux environment seamlessly.

Step-by-Step Configuration

Step#1: Create extprop Directory

  • Navigate to the 'ovaledge' folder and establish an 'extprop' directory.
  • Place the 'oasis.properties' file within this directory which was extracted from the following path 
    /home/ovaledge/tomcat/apache-tomcat-9.0.80/webapps/ovaledge/WEB-INF/classes

Step#2: Edit oasis.properties File

  • Open the 'oasis.properties' file and make the following changes:
    • Uncomment the 'MariaDB10' entry.
    • Comment out the 'MySQL 5.7' entry.
    • Enter ElasticSearch details.

Step#3: Create setenv.sh File

  • In the 'Tomcat' bin folder, generate a 'setenv.sh' file.
  • Insert the following content into the 'setenv.sh' file:

    export CATALINA_OPTS="-Duse.http=true -DOVALEDGE_SECURITY_TYPE=db -Dext.properties.dir=file:/home/ubuntu/ovaledge/extprop/ -Xms5g -Xmx7g"
  • This line of code configures Tomcat with specific options, including the external directory for properties and memory allocation.

Step#4: Save Configurations

  • Save the 'oasis.properties' file with the specified changes and configurations.
  • Ensure that the 'setenv.sh' file is saved in the Tomcat bin folder.

By following these steps, the Oasis properties are externalized on Linux, and the Tomcat installation is effectively configured to utilize these external properties. 


Copyright © 2024, OvalEdge LLC, Peachtree Corners, GA USA