Page History
...
- First create a new database for user management and registry data in MB 3.0.0. See the section on on setting up the Carbon database for for more information.
- Restore the old user management and registry data in the new database.
- Create another new database for MB-specific data in MB 3.0.0. See the section on setting up the MB-specific database for more information.
- Restore the old MB-specific data in the new database.
You will now have two new databases for MB 3.0.0 with the old data that existed for MB 2.2.0.
Note |
---|
If there are multiple databases set up for MB 2.2.0, such as separate databases for multiple user stores etc., you need to create new databases for each of them. |
...
- To connect MB 3.0.0 to the new database for user management and registry data, update the following configuration files:
Configure the
<MB_HOME_3.0.0>/repository/conf/datasources/masterdatasources.xml
file. This configuration should point to the new database that you set up in the previous section. See the following example:Code Block <datasource> user manager</description> <name>WSO2_CARBON_DB</name> <description>The datasource used for registry and <jndiConfig> <name>jdbc/WSO2CarbonDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:mysql://localhost:3306/<new_database></url> <username>username</username> <password>password</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>80</maxActive> <maxWait>60000</maxWait> <minIdle>5</minIdle> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
Go to the
<MB_HOME_3.0.0>/repository/conf/
directory and update the datasource references in theuser-mgt.xml
andregistry.xml
files to match the updated configurations in themasterdatasources.xml
file. The following are sample configurations with the datasource set to “jdbc/WSO2CarbonDB”:
registry.xmlCode Block <dbConfig name="wso2registry"> <dataSource>jdbc/WSO2CarbonDB</dataSource> </dbConfig>
usermgt.xml
Code Block <UserManager> <Realm> <Configuration> ... <Property name="dataSource">jdbc/WSO2CarbonDB</Property> </Configuration> ... </Realm> </UserManager>
- To connect MB 3.0.0 to the new database for MB-specific data, configure the following files:
Configure the
<MB_HOME_3.0.0>/repository/conf/datasources/masterdatasources.xml
file. This configuration should point to the MB-specific database that you set up in the previous section. See the following example:Code Block <datasource> <name>WSO2_MB_STORE_DB</name> <jndiConfig> <name>WSO2MBStoreDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <url>jdbc:mysql://localhost/wso2_mb</url> <username>root</username> <password>root</password> <maxActive>50</maxActive> <maxWait>60000</maxWait> <minIdle>5</minIdle> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> <defaultAutoCommit>false</defaultAutoCommit> </configuration> </definition> </datasource>
Go to the
broker.xml
file (stored in the<MB_HOME_3.0.0>/repository/conf
folder) and update the persistence information related to MB-specific data. See the following example:Code Block <messageStore class="org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl"> <property name="dataSource">WSO2MBStoreDB</property> <property name="storeUnavailableSQLStateClasses">08</property> <property name="integrityViolationSQLStateClasses">23,27,44</property> <property name="dataErrorSQLStateClasses">21,22</property> <property name="transactionRollbackSQLStateClasses">40</property> </messageStore> <contextStore class="org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl"> <property name="dataSource">WSO2MBStoreDB</property> <property name="storeUnavailableSQLStateClasses">08</property> <property name="integrityViolationSQLStateClasses">23,27,44</property> <property name="dataErrorSQLStateClasses">21,22</property> <property name="transactionRollbackSQLStateClasses">40</property> </contextStore>
- Check for any other configurations that were done for MB 2.2.0 (based on your solutions), and update the configuration files in MB 3.0.0 accordingly. For example, external user stores, caching, mounting, etc. The following configuration files are new in MB 3.0.0:
broker.xml
file (stored in the<MB_HOME_3.0.0>/repository/conf
folder)metrics.xml
file (stored in the<MB_HOME_3.0.0>/repository/conf
folder)metrics.properties
file (stored in the<MB_HOME_3.0.0>/repository/conf
folder)metrics-datasources.xml
file (stored in the<MB_HOME_3.0.0>/repository/conf/datasources
folder)
Step 3: Start the new server and create new
...
Topics and Queues
You now have your new MB 3.0.0 set up and configured.
- Proceed to start the server.
- Log in to the Management Console of MB 3.0.0.Manually create all the users, roles and permissions. See the section on managing users, roles and permissions for more information.
- Manually create all the Topics and Queues that were there in MB 2.2.0. See the sections on managing Queues and managing Topics for detailed instructions on how to add Topics and Queues.
...