by Stephen Horsfield
3. January 2008 16:52
Overview
Sometimes you need to run the same orchestration within two BizTalk applications on the same server. How can you distinguish which application you are in from within an orchestration?
In brief
There isn't an easy way to do this. The rules engine doesn't help, because you can only have one version of a particular set of rules active at any time. You can't easily access a custom application configuration file, because you still need some way of distinguishing the two applications.
Worse, BizTalk doesn't seem to make this available (have looked at both documented and undocumented APIs!).
However, if you can allow two separate Windows users to execute the applications in different BizTalk Host Instances (not physical machines) then you can use the Windows Identity from within a .NET module, returning the username or some other detail back to the orchestration.
Versions
- Microsoft .NET Framework 2.0
- Microsoft BizTalk 2006
Metadata