|
Home > Archive > BizTalk Server > December 2005 > Threaded Pipelines, writing temp files
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 |
Threaded Pipelines, writing temp files
|
|
| Dan Meland 2005-12-08, 5:54 pm |
| OK lets see if this will work.
I have a custom pipeline which is decrypting a file so
Process -> Start Decrypt, during this action a temp file and the extracted
file are produced.
The extracted file is then read into the pipeline abd added to the message
stream.
Here is the question.
Do I need to put thread.locks on the pipeline being that it is used by many
adapters/orchestrations?
How will the files stau in sync?
Any help with this one?
Thanks
Dan
| |
| Tomas Restrepo \(MVP\) 2005-12-14, 8:49 pm |
| Dan,
> OK lets see if this will work.
> I have a custom pipeline which is decrypting a file so
> Process -> Start Decrypt, during this action a temp file and the extracted
> file are produced.
>
> The extracted file is then read into the pipeline abd added to the message
> stream.
>
> Here is the question.
> Do I need to put thread.locks on the pipeline being that it is used by
> many
> adapters/orchestrations?
You shouldn't need to, as long as you're not sharing state between instances
of them (for example through undue use of static variables). Normally each
pipeline instance will get it's own instance of the pipeline component so
that's no problem.
As far as the file thing, well, as long as you make sure you're generating
unique temp file names for each pipeline instance (the OS can do this for
you), then you shouldn't have problems.
--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/
|
|
|
|
|