Click here to Skip to main content

BizTalk 2009 Application Monitor

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
Sign Up to vote bad good
Add a reason or comment to your vote: x
Votes of 3 or less require a comment
See more: C#

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

Posted 17 Nov '09
Edited 19 Nov '09


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Your Filters
Interested
Ignored
     
  1. SAKryukov (384)
  1. SAKryukov (9,582)
  2. Christian Graus (6,009)
  3. OriginalGriff (4,736)
  4. Abhinav S (4,335)
  5. thatraja (4,329)

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionHow to debug biztalk application Pinmemberrayan nisar20:36 22 Dec '11  

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
Web01 | 2.5.120210.1 | Last Updated 19 Nov 2009
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid