The WSO2BAM_UTIL_DATASOURCE, which is defined in the <PRODUCT_HOME>/repository/conf/bam-datasources.xml
file is used used by the <hyperlink>
component in BAM notifications.
Replace the url
, username
and password
settings with your custom values and also the other values accordingly in the bam-datasources.xml
file as shown in the below example.
<datasource> <name>WSO2BAM_UTIL_DATASOURCE</name> <description>The datasource used for BAM utilities, such as message store etc..</description> <definition type="RDBMS"> <configuration> <url>jdbc:cassandra://localhost:9160/BAM_UTIL_KS</url> <username>admin</username> <password>admin</password> <dataSourceProps> <property name="replicationFactor">1</property> <property name="strategyClass">org.apache.cassandra.locator.SimpleStrategy</property> <property name="readConsistencyLevel">QUORUM</property> <property name="writeConsistencyLevel">QUORUM</property> <property name="externalCassandra">false</property> </dataSourceProps> </configuration> </definition> </datasource>
The datasource configuration options are as follows:
- url - The URL of the database.
username - The name of the database user.
- password - The password of the database user.
dataSourceProps - The properties of the datasource. The following properties can be defined:
Property Decsription replicationFactor
strategyClass
readConsistencyLevel
writeConsistencyLevel
externalCassandra