This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
BAM Mediator
The BAM mediator captures data events from the ESB mediation sequences and sends them to the WSO2 Business Activity Monitor server via its Thrift API. This API uses a binary protocol and enables fast data transmission between the ESB and BAM server.
For more information on BAM, see the BAM documentation.
Syntax
<bam xmlns="http://ws.apache.org/ns/synapse"> <serverProfile name="BAM Server Profile 1"> <streamConfig name="Test Stream" version="1.0.0"></streamConfig> </serverProfile> </bam>
UI configuration
Before you can configure a BAM mediator, you must have configured a BAM server profile and stream. You can then add the BAM mediator to a sequence (when adding a mediator, choose Agent -> BAM) and specify the BAM server profile and stream you want to use to start capturing and sending data events to the BAM server. Be sure to enable statistics on the sequence to start collecting the data.
The following properties can be configured for the BAM mediator.
Server Profile: The BAM server profile that contains the transport and credential data required to connect to the BAM Thrift server.
Stream Name: The stream used to identify the data to be extracted from the configuration context of the mediation sequence.
Stream Version: The version of the stream used.
Example
See Sending Messages to ESB in the BAM documentation for an example.