...
The embedded registry instance is configured by the registry.xml
file which can be found in the ESB_HOME/repository/conf
directory. In this configuration you could point the embedded registry to a database other than the default embedded H2 database. To change the database used by the registry or change the location of the database files, edit the following section of the registry.xml
.
Code Block |
---|
<dbconfig<currentDBConfig>wso2registry</currentDBConfig> <readOnly>false</readOnly> <enableCache>true</enableCache> <registryRoot>/</registryRoot> <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> <dataSource>jdbc/WSO2CarbonDB</dataSource> </dbconfig>dbConfig> |
WSO2 Governance Registry can be run in two operational modes, namely the ReadWrite
mode and the ReadOnly
mode. By default, it operates in the ReadWrite
mode. This mode is set by the following element in the registry.xml
file.
...