Port Offset
Introduction of a port offset will affect all ports used by WSO2 BAM including the management console port (9443) and thrift/Secure thrift ports (7611/7711).
When using embedded Cassandra
If you are using the embedded Cassandra, which is shipped with the product, change the following configurations to apply a port offset to WSO2 BAM.
- Change the value of the
Offset
property as required in the<PRODUCT_HOME>/repository/conf/carbon.xml
file as follows:<Offset>3</Offset>
Change the value of the port according to the defined port offset defined in the
url
element of theWSO2BAM_CASSANDRA_DATASOURCE
, which is defined in the<PRODUCT_HOME>/repository/conf/bam-datasources.xml
Make sure that the
externalCassandra
property included within theconfiguration
element inWSO2BAM_UTIL_DATASOURCE
, which is defined in the<PRODUCT_HOME>/repository/conf/bam-datasources.xml
file is set tofalse.
For more information on these datasources, see Datasources.- Replace the same property values is in the
<PRODUCT_HOME>/repository/conf/etc/hector-config.xml
file.
When using external Cassandra
If you are using an external Cassandra, change the following configurations.
- Change the value of the Offset property as required in the
<PRODUCT_HOME>/repository/conf/carbon.xml
file as follows:<Offset>3</Offset>
Replace the property values of the datasource configurations (
url,username,password
etc.) defined in theWSO2BAM_CASSANDRA_DATASOURCE
of the<PRODUCT_HOME>/repository/conf/bam-datasources.xml
file with the values of the external Cassandra connection accordingly. For more information on these datasources, see Datasources.Set the
externalCassandra
property totrue
within theconfiguration
element in all the datasources defined in the<PRODUCT_HOME>/repository/conf/bam-datasources.xml
file, in theWSO2BAM_CASSANDRA_DATASOURCE
. For more information on these datasources, see Datasources.When using external Cassandra node(s) while the BAM port has been offset, the
externalCassandra
property must be set totrue
, to ensure that the port offset is not automatically applied to the Cassandra server connection parameters.- Replace the same property values is in the
<PRODUCT_HOME>/repository/conf/etc/hector-config.xml
file.