Class MBDatabaseConfig

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

public class MBDatabaseConfig extends Object
Reads [repository/conf/broker.xml] and load message store and context store jndi names
  • Constructor Details

    • MBDatabaseConfig

      public MBDatabaseConfig(String filePath)
      Construct MB database config. This will load config values reading from file
      Parameters:
      filePath - path of the file containing configs of data source jndi names
  • Method Details

    • getSecuredDocumentBuilderFactory

      public static DocumentBuilderFactory getSecuredDocumentBuilderFactory()
      Create DocumentBuilderFactory with the XXE and XEE prevention measurements.
      Returns:
      DocumentBuilderFactory instance
    • getMessageStoreJndiName

      public String getMessageStoreJndiName()
      Get JNDI name of message store (used to store messages)
      Returns:
      JNDI name as string
    • getContextStoreJndiName

      public String getContextStoreJndiName()
      Get JNDI name of context store (used to store context information of broker)
      Returns:
      JNDI name as string
    • isContextStoreAvaliable

      public boolean isContextStoreAvaliable()
      Check if context store is set. If context store name is same as message store name context store is not in effect
      Returns:
      if context store is in effect