Using Custom Config Management Server for Configuration Management Services

Follow the steps below to use custom config management server for configuration management services:

  1. Create a new package and inside the new package create a new java class.
  2. Import com.tibco.bw.runtime.customProps package in this java class and implement the custom config management by implementing the interface ExternalApplicationProperties provided in this package.

    The implementation of custom configuration management should register an OSGi service implementing the ExternalApplicationProperties interface.

    The interface has a method getExternalApplicationProperties() of return type Map<String, String> that should return the properties and their corresponding values fetched from the custom configuration management server.

  3. Export the project as a plug-in by right-clicking on the newly created package and select Export > Plug-in Development > Deployable plug-ins and fragments.
  4. In the Export wizard, ensure that the package is selected, and specify a location to export the plug-in. Get the JAR file from the specified location in the plug-ins folder and place the JAR in TIBCO_HOME/bwce/2.5/docker/resources/addons/jars folder of the TIBCO BusinessWorks Container Edition installation.
  5. While deploying the application, make sure to set the value of the property bw.application.config.management.type same as the value of the property external.config in your OSGi service.
    1. While deploying the application in the studio, set the property as a VM argument.
    2. For docker, set the property using the following syntax:

      -e BW_JAVA_OPTS="-Dbw.application.config.management.type=custom"