Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

BizTalk 2009 Application Monitor

0.00/5 (No votes)
19 Nov 2009 1  
IntroductionI have wrote this post to tell you how to retrieve all BizTalk 2009 Applications with some important information. I am using BizTalk ExplorerOM assembly it is allow me to access BizTalk Application objects, so I have created simple windows application that show all BizTalk applicatio

Introduction

I have wrote this post to tell you how to retrieve all BizTalk 2009 Applications with some important information. I am using BizTalk ExplorerOM assembly it is allow me to access BizTalk Application objects, so I have created simple windows application that show all BizTalk application with status in DataGridView.

Understand Code

Let us see main code used to retrieve BizTalk application and it is status in the below code:

 1: BtsCatalogExplorer catalog = new BtsCatalogExplorer();
 2: DataTable apptbl = CreateAppTBL();
 3: //connection string to BizTalk management database
 4: catalog.ConnectionString = "SERVER=.;DATABASE=BizTalkMgmtDb;Integrated Security=SSPI";
 5: DataRow dr;
 6: foreach (Microsoft.BizTalk.ExplorerOM.Application app in catalog.Applications)
 7: {
 8:     dr = apptbl.NewRow();
 9:     dr["AppName"] = app.Name;
10:     dr["AppDesc"] = app.Description;
11:     dr["AppStatus"] = app.Status;
12:     apptbl.Rows.Add(dr);
13: }
14: return apptbl;

As shown above I am going to retrieve all applications throw BtsCatalogExplorer then use Foreach loop to fetch each application individual and finally fill DataTable with information needed.

Now I am going to give you simple description about ConnectionString property found at BtsCatalogExplorer .

ConnectionString : is used for gets or sets the string used to open BizTalk Management database as shown above i have installed BizTalk at local server so i have wrote server=. to point to local server database and BizTalk Database is BizTalkMgmtDbso i have set DataBase with BizTalkMgmtDb value.

Point of Interest

I think we have learned about ExplorerOM assembly and how it being used. You can download source code from http://www.box.net/shared/3lsvtpnraf

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here