WSO2 Governance Registry - User Guide [ Documentation Index ]

WSO2 Governance Registry - User Guide

Registry Configurations

The configurations for the registry is kept in the registry.xml which can be found inside the CARBON_HOME/conf/. You can configure various parameters of the registry in there. The following sub sections will describe these parameters in details. Note that in order to take effect these parameters, you have to restart the registry.

Configure Read-Only Registry

To run the registry in read-only mode set the 'readOnly' element to 'true'. Setting the read-only mode allows you to run an immutable instance of registry repository.

Configure Registry Root

In here, you can specify the absolute path of the collection which you wish to use as the root of this registry instance.

Database Configurations

Database configurations for the registry is in the following schema.


    <currentDBConfig>wso2registry</currentDBConfig>

    <dbConfig name="wso2registry">
        <url>jdbc:h2:database/WSO2CARBON_DB</url>
        <userName>wso2carbon</userName>
        <password>wso2carbon</password>
        <driverName>org.h2.Driver</driverName>
        <maxActive>50</maxActive>
        <maxWait>60000</maxWait>
        <minIdle>5</minIdle>
    </dbConfig>

In parellel you have to configure the user-mgt.xml in the same directory as registry.xml with the custom database settings. You can find the database configurations for the different databases in the respective installation guides.

Handler Configurations

You can use this to configure handlers and associate them with filters and custom properties. Example of handler configurations in registry.xml
    <handler class="org.wso2.carbon.registry.extensions.handlers.WSDLMediaTypeHandler">
        <property name="schemaLocationConfiguration" type="xml">
            <locationType>absolute</locationType>
            <location>/governance/schemas/</location>
        </property>
        <property name="wsdlLocationConfiguration" type="xml">
            <locationType>absolute</locationType>  <!-- absolute or relative -->
            <location>/governance/wsdls/</location>
        </property>
        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
            <property name="mediaType">application/wsdl+xml</property>
        </filter>
    </handler>
Please have a look at the Handler Developer Guide for more details.

Mounting Configuraions

In order to mount an external registry, you have to provide the following configuration in the registry. Here is an example configuration of mouting a registry running on localhost:9442
    <remoteInstance url="https://host:port/registry">
        <id>instanceid</id>
        <username>username</username>
        <password>password</password>
    </remoteInstance-->

Static (One-time) Configurations

You are suppose to change the static configuration section only before loading any data to the registry. (That is before the first startup.) The following configurations are possible in this section.

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.