Class MessageBrokerDBUtil

java.lang.Object
org.wso2.carbon.andes.utils.MessageBrokerDBUtil

public final class MessageBrokerDBUtil extends Object

Initialize MB RDBMS store database

Connect to an external RDBMS store automatically when Dsetup feature enabled with wso2server startup script. This utility class contain methods for following functions. 1. Find rdbms configurations to rdbms data store from external source. 2. Source given sql scripts according to data source configurations. 3. verify database tables are created.
  • Constructor Details

    • MessageBrokerDBUtil

      public MessageBrokerDBUtil()
  • Method Details

    • initialize

      public void initialize() throws ConfigurationException
      Creating schema for RDBMS message store using jndi exposed data sources by Carbon (these data sources are formed reading /repository/conf/masterdatasource.xml file)
      Throws:
      ConfigurationException - throws exception if error occurs while creating DB schema