|
Home > Archive > BizTalk Server Orchestration > July 2004 > Loading file and storing it on startup
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 |
Loading file and storing it on startup
|
|
| rnsdas 2004-07-22, 5:56 pm |
| Hello,
I have many orchestrations. Our requirement is that we need to store an XML file in the cache at START-UP.The values from this property files would be used throughout all these orchstrations (which are spread across different Projects).
How do I acheieve it. I mean how do I load an XML file on START-UP? How do I parse it and store the values? How do I access these values in my orchestrations?
(e.g: For exception handling: we would like to send an error code / error message pertaining to the type of the exception . This is one of the use of the XML property file that we need to do). Can someone throw some light on this pelase ?
Any URL wherein this is explained in details will also be appreciated.
Thanks in advance,
rnsdas
| |
| Yossi Dahan 2004-07-22, 5:56 pm |
| As far as I know, under normal circumstances, orchestration instances are
initialized when they are called and terminates shortly after they are
finished their execution, just like any other class.
There is no way to keep information in-memory for orchestration, unless you
want to process a message at a time.
Yossi
"rnsdas" <rnsdas@discussions.microsoft.com> wrote in message
news:3401851B-30ED-4F18-9670-20CFA7DF4CCB@microsoft.com...
> Hello,
>
> I have many orchestrations. Our requirement is that we need to store an
XML file in the cache at START-UP.The values from this property files would
be used throughout all these orchstrations (which are spread across
different Projects).
>
> How do I acheieve it. I mean how do I load an XML file on START-UP? How do
I parse it and store the values? How do I access these values in my
orchestrations?
>
> (e.g: For exception handling: we would like to send an error code / error
message pertaining to the type of the exception . This is one of the use of
the XML property file that we need to do). Can someone throw some light on
this pelase ?
>
> Any URL wherein this is explained in details will also be appreciated.
>
> Thanks in advance,
> rnsdas
| |
| Gilles [MSFT] 2004-07-22, 5:56 pm |
| Hello,
>I have many orchestrations. Our requirement is that we need to store an XML file in the cache at START-UP.The values from this property files would
>be used throughout all these orchstrations (which are spread across different Projects).
>
>How do I acheieve it. I mean how do I load an XML file on START-UP? How do I parse it and store the values? How do I access these values in my
>orchestrations?
>
>(e.g: For exception handling: we would like to send an error code / error message pertaining to the type of the exception . This is one of the use of the
XML property file that we need to do). Can someone throw some light on this pelase ?
>
>Any URL wherein this is explained in details will also be appreciated.
One possible way would be to add those values to the BTSNTSvc.exe.config file. You would then be able to read it from an orchestration.
Look at http://msdn.microsoft.com/library/e....asp?frame=true to have more details on this file.
Thanks.
-Gilles.
|
|
|
|
|