BAM can monitor the ESB using BAM mediators. ESB is made up with three channels that are responsible for input messages, output messages and fault messages. Each channel consists of sequences of mediators that process messages accordingly. BAM mediator is a special mediator that can be positioned between mediator sequences that can copy the messages passing through it and send them to the BAM for monitoring also you can use this BAM mediator to publish some custom information to BAM from ESB.
When fault messages are found they are identified by the BAM and take necessary actions to alert the required people. Sending an e-mail to a given e-mail address is one of such an option.
All the messages intercepted by BAM from ESB are continuously stored in a Cassandra database. Periodically a set of analyzers called analyzer sequences are run on the stored message databases. Analyzer sequences can be designed directly with XML. An analyzer sequence can get messages from the message databases, detect fault messages and send e-mails the specified authorities.