This documentation is for WSO2 Message Broker 3.1.0. View documentation for the latest release.
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.
Skip to end of metadata
Go to start of metadata

To configure and run MySQL as your RDBMS, you must do the following.

  1. Open the <MB_HOME>/repository/conf/datasources/master-datasources.xml file. This is where datasources are configured to point to the databases used by the Message Broker. This file consists of commented out configurations for datasources. The datasource configuration for MySQL is among these. The changes made to this file must be done in both broker nodes.
  2. Uncomment or add the following configuration into the master-datasources.xml file. Update the JDBC URL to correctly point to your database and enter the username and password for a MySQL database user with the proper permissions.

                 <definition type="RDBMS">


  3. Open the <MB_HOME>/repository/conf/broker.xml file. This is the root configuration file of Message Broker. The changes made to this file must be done in all the WSO2 Message Broker nodes.
  4. In the broker.xml file we need to use the MySQL message store and Andes context store. To do this, uncomment or add the following configuration.

      <messageStore class="">
            <property name="dataSource">jdbc/MySQLMessageStore</property>
      <andesContextStore    class="">
            <property name="dataSource">jdbc/MySQLMessageStore</property>
  • No labels