This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Configuration for Static (One-time) and Auto Versioning Resources
Static (One-time) Configurations
The WSO2 Governance Registry configuration will be loaded when the org.wso2.carbon.registry.core
bundle (the registry kernel) is activated. Thus, if any change done to the registry configuration, the server needs to be restarted if it is already running. While most configuration options can be changed after the first run of the WSO2 Governance Registry, changing the Static Configuration (configuration details under the staticConfiguration
parameter), will not be fully effective. If you need to change any Static Configuration and expect it to take effect, you will have to erase the contents of the database, and restart the server passing the -Dsetup
system property which will re-generate the database.
You are suppose to change the static configuration section only before loading any data to the registry. (That is before the first start-up.) The following configurations are possible in this section.
versioningProperties
- Whether the properties are versioned when a snapshot is created.versioningComments
- Whether the comments are versioned when a snapshot is created.versioningTags
- Whether the tags are versioned when a snapshot is created.versioningRatings
- Whether the ratings are versioned when a snapshot is created.
<staticConfiguration> <versioningProperties>true</versioningProperties> <versioningComments>true</versioningComments> <versioningTags>true</versioningTags> <versioningRatings>true</versioningRatings> <!-- Location you want to add service and default location will be /services/ --> <servicePath>/trunk/services/</servicePath> </staticConfiguration>
Note
The default values of these elements are set to true
.
Configure Auto Versioning Resources
You can configure whether you want to auto-version the resources (non-collection) by setting versionResourcesOnChange
element to true
. In this configuration it will create a version for the resources whenever it is updated.
<versionResourcesOnChange>false</versionResourcesOnChange>