Build and Deploy RS Gateway

When the custom extension is complete, build the project and deploy the .jar file to RS Gateway.

Procedure

  1. Go to to the /mtxsdk/projects/thinAirTax directory.
  2. Copy the extensions.jar file to the /opt/mtx/ext/common directory.
  3. Edit the /opt/mtx/conf/extension-containers.yaml file.
    Note: If this file does not exist, you must create it.
  4. Add the MATRIXX Data Container (MDC) definition files to extension-containers.yaml.
    For example:
    extension-core: /extension-containers.yaml
    Extension-rest: /extension-rest-mdc.xml
  5. Copy the libraries or dependencies to the /opt/mtx/ext/common directory.
  6. Build the project.
    At the command prompt, type:
    mvn clean install
  7. Copy the rsgwextension.jar file to the /opt/mtx/ext/rsgateway directory.
  8. Enter the following command to restart RS Gateway:
    sudo systemctl restart mtx_rsgateway

What to do next

Make a POST call to test the new REST service in the custom RS Gateway. Use the following URL.
http://host:port/rsgateway/