Click here to Skip to main content
Click here to Skip to main content

Tagged as

BizTalk 2009 Application Monitor

, 19 Nov 2009
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

mohamad12345

Egypt Egypt
No Biography provided

Comments and Discussions

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

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

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

| Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 19 Nov 2009
Article Copyright 2009 by mohamad12345
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid