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.
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.
For more information on BAM, see the BAM documentation.