Package org.wso2.carbon.andes.utils
Class MBDatabaseConfig
java.lang.Object
org.wso2.carbon.andes.utils.MBDatabaseConfig
Reads [repository/conf/broker.xml] and load message store and context store jndi names
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet JNDI name of context store (used to store context information of broker)Get JNDI name of message store (used to store messages)static DocumentBuilderFactoryCreate DocumentBuilderFactory with the XXE and XEE prevention measurements.booleanCheck if context store is set.
-
Constructor Details
-
MBDatabaseConfig
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
Create DocumentBuilderFactory with the XXE and XEE prevention measurements.- Returns:
- DocumentBuilderFactory instance
-
getMessageStoreJndiName
Get JNDI name of message store (used to store messages)- Returns:
- JNDI name as 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
-