You know that BAM is used to gather statistics from your BizTalk application. What you probably don’t know is that:
· You can collect BAM data from your non-BizTalk applications such as external .NET components that BizTalk calls into.
· 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:
· http://www.developer.com/net/net/article.php/11087_3587296_2
· http://blogs.msdn.com/keithlim/archive/2006/02/02/522649.aspx
· http://blogs.msdn.com/keithlim/archive/2006/03/08/545851.aspx r
Original Article : http://geekswithblogs.net/benny/archive/2007/06/14/113219.aspx