How to create a separate configuration file for the project in BizTalk [translation]

Source: Internet
Author: User

Sometimes some information needs to be stored in the configuration file for the convenience of BizTalk maintenance. BizTalk provides
Files \ Microsoft Biztalk Server 2004 (2006) \ BTSNTSvc.exe. config. However, it is difficult to maintain a large number of projects. In the following example, you can configure btsntsvc.exe. config to assign a configuration file to a separate project.

1. configuration of BTSNTSvc.exe. config

<ConfigSections>
<Section name = "xlangs"
Type = "Microsoft. XLANGs. BizTalk. CrossProcess. XmlSerializationConfigurationSectionHand
Ler, Microsoft. XLANGs. BizTalk. CrossProcess "/>
</ConfigSections>

<Xlangs>
<Configuration>
<AppDomains AssembliesPerDomain = "10">
<AppDomainSpecs>
<AppDomainSpec Name = "MyAppDomain" secondsidlebeforeshudown = "-1"
Secondsemptybeforeshudown = "12000">
<BaseSetup>
<ConfigurationFile> c: \ temp \ app. config </ConfigurationFile>
</BaseSetup>
</AppDomainSpec>
</AppDomainSpecs>
<ExactAssignmentRules>
<ExactAssignmentRule AssemblyName = "myAssemblyName, Version = 1.0.0.0
Culture = neutral PublicKeyToken = 5a4c37737373 "AppDomainName =" MyAppDomain "/>
</ExactAssignmentRules>
</AppDomains>
</Configuration>
</Xlangs>

C: \ temp \ app. config configuration information

<Configuration>
<Deleetask>
<Add key = "mykey" value = "myvalue"/>
</AppSettings>
</Configuration>

After the preceding configuration, you may obtain the value in the Orchestraction expression or class library in the following way:
System. Configuration. ConfigurationSettings. receivettings ("mykey ")

Restart BizTalk Host after you modify the information of BTSNTSvc.exe. config to ensure that the changed information can be applied.
I hope this file will be helpful to you.
Cheers
Ben Jiang

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.