BizTalk Server General - How to determine if one-way or two-way in pipeline

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2006 > How to determine if one-way or two-way in pipeline





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 determine if one-way or two-way in pipeline
Craig Neuwirt

2006-01-31, 6:59 pm

I need to know in a PipelineComponent if a message came from a one-way or
two-way port (adapter). What is the best way to achieve this? Currently, I
check for the presence of a CorrelationToken in the Message Context, but
that seems like a hack.

thanks,
craig


Tomas Restrepo \(MVP\)

2006-01-31, 6:59 pm

Hi Craig,

>I need to know in a PipelineComponent if a message came from a one-way or
>two-way port (adapter). What is the best way to achieve this? Currently,
>I check for the presence of a CorrelationToken in the Message Context, but
>that seems like a hack.


I haven't tested it, but I think the correct properties to check would be
either BTS.IsSolicitResponse and BTS.IsRequestResponse (which for some
reason are undocumented).

I do know for sure that the CorrelationToken property might get set in
one-way scenarios. For example, the HTTP Receive adapter will fill it in
OneWay scenarios if it is configured to returned the correlation token to
the poster.


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Craig Neuwirt

2006-01-31, 6:59 pm

Hello Tomas,

I don't remember seeing those in the context. Eitherway, neither indicates
whether the operation was one-way. They seem to identify the
communication-direction and not the communication-pattern.

thanks,
craig

"Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
news:Obu$4anJGHA.1728@TK2MSFTNGP14.phx.gbl...
> Hi Craig,
>
>
> I haven't tested it, but I think the correct properties to check would be
> either BTS.IsSolicitResponse and BTS.IsRequestResponse (which for some
> reason are undocumented).
>
> I do know for sure that the CorrelationToken property might get set in
> one-way scenarios. For example, the HTTP Receive adapter will fill it in
> OneWay scenarios if it is configured to returned the correlation token to
> the poster.
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>



Tomas Restrepo \(MVP\)

2006-01-31, 6:59 pm

Hi Craig,


> Hello Tomas,
>
> I don't remember seeing those in the context. Eitherway, neither
> indicates whether the operation was one-way. They seem to identify the
> communication-direction and not the communication-pattern.


I know they do. But if both were false, you couldn't be in a one-way send or
receive interaction, could you? (since basically both communication
directions relate to two-way patterns).


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Craig Neuwirt

2006-02-01, 7:50 am

Ahhh! That makes good ense. I'll have to try that out. :-)

Thanks for the suggestion,
craig

"Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
news:%23K8UkaqJGHA.2828@TK2MSFTNGP12.phx.gbl...
> Hi Craig,
>
>
>
> I know they do. But if both were false, you couldn't be in a one-way send
> or receive interaction, could you? (since basically both communication
> directions relate to two-way patterns).
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com