Using Custom Config Management Server for Configuration Management Services
Follow the steps below to use custom config management server for configuration management services:
- Create a new package and inside the new package create a new java class.
- Import
com.tibco.bw.runtime.customProps
package in this java class and implement the custom config management by implementing the interfaceExternalApplicationProperties
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 typeMap<String, String>
that should return the properties and their corresponding values fetched from the custom configuration management server. - Export the project as a plug-in by right-clicking on the newly created package and select .
- 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.
- 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.- While deploying the application in the studio, set the property as a VM argument.
- For docker, set the property using the following syntax:
-e BW_JAVA_OPTS="-Dbw.application.config.management.type=custom"