Thursday, April 3, 2008

Suspended Message Writer for BizTalk

OK ... so finally after a long wait ... I'm here with the ideas of the code... Sorry, but I can't paste it all out here.

Writing suspended messages to disk into the folder name of its own application is something that can be easily achieved by using WMI classes and some peices of .NET programming. I know it isn't sounding that great ... but beleive me ... I had to struggle coz I never got a chance to look at this view of BizTalk ... --the WMI classes under. (root\MicrosoftBizTalkServer)

My peice of code also uses a lot of SQL queries and # tables. This was used to club up the Service Names (application names) and get their GUIDs. I then relate the suspended instances with their owner services. Once this is all available, you can now write down the peices of code to fetch the Application name for each service instance that is suspended, create the folder to some location if not already existing, and save the messages to disk.

The idea may not be that great ... but I hope it would be quite some helpful for a few out there.