Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can point the embedded registry to a database other than the default embedded H2 database or change the location of the database files, by editing the WSO2_CARBON_DB datasource configuration in the <ESB_HOME>/repository/conf/datasources/master-datasources.xml file as shown in the example below. 

Code Block
<datasources> 
        <datasource> 
            <name>WSO2_CARBON_DB</name> 
            <description>The datasource used for registry- and user manager<local</description> 
            <jndiConfig> 
                <name>jdbc/WSO2CarbonDB</name> 
            </jndiConfig> 
            <definition type="RDBMS"> 
                <configuration> 
                    <url>jdbc:mysql://localhostcarbondb.mysql-wso2.com:3306/eve490WrkDB<LOCALDB?autoReconnect=true</url> 
                   <username>eve490WrkDB< <username>regadmin</username> 
                   <password svns:secretAlias="Datasources.WSO2_CARBON_DB.Configuration.Password">password< <password>regadmin</password> 
                    <driverClassName>com.mysql.jdbc.Driver</driverClassName> 
                    <maxActive>50</maxActive> 
                    <maxWait>60000</maxWait> 
                    <testOnBorrow>true</testOnBorrow> 
                    <validationQuery>SELECT 1</validationQuery> 
                    <validationInterval>30000</validationInterval> 
                   <defaultAutoCommit>false</defaultAutoCommit>
                </configuration> 
            </definition> 
</datasource>

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.

...