Click here to Skip to main content
15,880,725 members
Articles / Programming Languages / C#
Tip/Trick

BizTalk 2009 Application Monitor

Rate me:
Please Sign up or sign in to vote.
3.00/5 (2 votes)
19 Nov 2009CPOL 13.5K   2   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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Egypt Egypt
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionHow to debug biztalk application Pin
rayan nisar22-Dec-11 19:36
rayan nisar22-Dec-11 19:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.