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 value of the Offset
property as required in the <BAM_HOME>/repository/conf/carbon.xml
file as follows: <Offset>3</Offset>
Starting with BAM 2.5.0, when embedded Cassandra is used, you need to set the externalCassandra
property to false
in the datasources, to automatically increment the Cassandra ports with the specified offset value. For example, an offset of 3 will automatically cause the Cassandra node bundled with the BAM server, to listen on port 9163.
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
<BAM_HOME>/repository/conf/carbon.xml
file as follows: <Offset>3</Offset> Set the
externalCassandra
property totrue
within theconfiguration
element in all the datasources with the type Cassandra, which are defined in<PRODUCT_HOME>/repository/conf/bam-datasources.xml
file. 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 property values of the datasource configurations (
hosts, port,username,password
etc.) defined in the datasources of the<BAM_HOME>/repository/conf/bam-datasources.xml
file with the type as Cassandra, with the values of the external Cassandra connection accordingly. - Set the
externalCassandra
property totrue and r
eplace the same property values (hosts and port
) in the<BAM_HOME>/repository/conf/etc/hector-config.xml
file.