Exporting Properties to Consul Server

This section describes exporting default and tokenized properties to Consul Server

Prerequisites

  1. Select Windows > Preferences > BusinessWorks > Service Registryfrom the Menu bar.
  2. Once the Service Registry wizard opens, add the URL as http://<consul_server_host>:<port> for the Consul Server in the service registry configuration section.
  3. Click Apply and OK

To export tokenized properties to the Consul Server

Procedure

  1. Double click the application properties.
  2. In the Properties view, select the profile, and click the Export Profile button.
    The Export Profile wizard opens.
  3. In the Export Profile wizard, select the properties to be exported.
  4. To export to consul sever, see select the Export to Consul check box and click Finish.
  5. To enable authentication for the Consul Server, select the Consul Authentication check and click Finish.
    This check box is available only when the Export to Consul check box is selected. When the Consul Authentication check box is selected, it is mandatory to provide a authentication token.
    Note:
    Note: It is now possible to export the profile properties to the specific custom folder under Consul > Key-Value by specifying its path in the Export to Consul check box.
    The following table lists the values of five different types of properties if the default values are not provided for all the properties and exported to consul server
    Data Type Property Name Values Before Export Values After export Values After Export in Consul Server
    Default Default
    String newProperty5 #newProperty5# newProperty5
    Password newProperty4 #newProperty4# <encrypted value of the password>
    Integer newProperty3 0 #newProperty3# 0
    Long newProperty2 0 #newProperty2# 0
    Boolean newProperty1 false #newProperty1# false
    The following table lists the values of five different types of properties if the default values are provided for all the properties and exported to consul server
    Data Type Property Name Values Before Export Values After export Values After Export in Consul Server
    Default Default
    String newProperty5 TIBCO #newProperty5# TIBCO
    Password newProperty4 *** #newProperty4# <encrypted value of the password>
    Integer newProperty3 1 #newProperty3# 1
    Long newProperty2 12345 #newProperty2# 12345
    Boolean newProperty1 true #newProperty1# true
    The following table lists the values of five different types of properties if the default tokenized values are provided for all the properties and exported to consul server
    Data Type Property Name Values Before Export Values After export Values After Export in Consul Server
    Default Default
    String newProperty5 #//test//newProperty5# #newProperty5# newProperty5
    Password newProperty4 #//test//newProperty4# #newProperty4#

    a String:

    PASSWORD

    Integer newProperty3 #//test//newProperty3# #newProperty3# 0
    Long newProperty2 #//test//newProperty2# #newProperty2# 0
    Boolean newProperty1 #//test//newProperty1# #newProperty1# false
    Note: After exporting String type property in group to consul server, the exported profile has key and value as newGroup.newGroup1.newGroup1Property5