BizTalk Server Orchestration - How to use config file in BTS orchestration

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2005 > How to use config file in BTS orchestration





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to use config file in BTS orchestration
CyberLotus

2005-01-17, 2:46 am

Hi,

I want to use a configuration file from where my BizTalk orchestration
should take some information.
For example, I want to send a mail from orchestration. So, the subject line,
mail address should be picked up from configuration file. How can I achieve
that.

Please help me.

Thanks & Regards,
CyberLotus
Hugo Rodger-Brown

2005-01-17, 5:53 pm

You can put data into the BizTalk host config file - BTSNTSvc.exe.config,
which is usually installed in <program files>\Microsoft BizTalk Server 2004\
..

If you do, it's then available within Expression shapes using the same
syntax as standard .NET project config files:
e.g.
myEmail =
System.Configuration.ConfigurationSettings.AppSettings.Get("myEmailAddress")
;

NB You need to use the AppSettings.Get() method as the default accessor
(AppSettings["myEmailAddress"] won't work (why is this unsupported?)

The main issue with this is that if you are running a multi-machine setup,
you will need to update all of the config files on all of the machines that
are running hosts that need to use the data. This could become a management
issue.

A popular alternative is to use the Rule Engine, which takes a bit more work
to get it right, but does have the advantage of being centralised. It has an
additional advantage in that it makes changes more accessible to
non-technical staff who are less comfortable editing config files (quite
apart from the ops issues of deploying config files to a production
environment.)

Hugo

"CyberLotus" <CyberLotus@discussions.microsoft.com> wrote in message
news:7B2B141E-1F0B-4849-AB92-64D238129CA7@microsoft.com...
> Hi,
>
> I want to use a configuration file from where my BizTalk orchestration
> should take some information.
> For example, I want to send a mail from orchestration. So, the subject

line,
> mail address should be picked up from configuration file. How can I

achieve
> that.
>
> Please help me.
>
> Thanks & Regards,
> CyberLotus



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com