You know that BAM is used to gather statistics from your BizTalk application. What you probably don’t know is that:

%u00b7 You can collect BAM data from your non-BizTalk applications such as external .NET components that BizTalk calls into.

%u00b7 Tracking profile editor (TPE) is not the only way to collect data you can use a set of APIs available in the Microsoft.BizTalk.Bam.EventObservation namespace to read and write directly into the BAMPrimaryImport database.

Check out some of the links here:

%u00b7 http://www.topxml.com/rbnews/BizTalk-BAM-activity/re-29195_Business-Activity-Monitoring–GenerateTypedBAMAPI-Tool.aspx

%u00b7 http://www.developer.com/net/net/article.php/11087_3587296_2

%u00b7 http://blogs.msdn.com/keithlim/archive/2006/02/02/522649.aspx

%u00b7 http://blogs.msdn.com/keithlim/archive/2006/03/08/545851.aspx