The default key space name of WSO2 BAM server is
EVENT_KS
. By default, BAM persists data in EVENT_KS
keyspace. For indexing purposes, another key-space is used by BAM. Default name for index key - space is EVENT_INDEX_KS
. Both the default key space and and index key space are referred by by the
<keySpaceName>
element in <PRODUCT_HOME>/repository/conf/advanced/streamdefn.xml
file as follows.
Code Block | ||
---|---|---|
| ||
<StreamDefinition> <EventDatasourceName>WSO2BAM_CASSANDRA_DATASOURCE</EventDatasourceName> <EventIndexDatasourceName>WSO2BAM_CASSANDRA_EVENT_INDEX_SOURCE</EventIndexDatasourceName> </StreamDefinition> |
Changing the default key space name
You can define a different key space name for BAM persistence. It helps in physical separation of data, especially where the same cassandra cluster is used by multiple solutions/services. To change this, edit the
<keySpace>
element of the WSO2BAM_CASSANDRA_DATASOURCE
in <PRODUCT_HOME>/repository/conf/datasources/bam-datasources.xml
file as follows....