|
Home > Archive > BizTalk Server Orchestration > December 2005 > Listen shape branches
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 |
Listen shape branches
|
|
| Samuel L 2005-12-12, 7:48 am |
| Hi!
Let's say we have a listen shape with two branches in the middle of our
orch. Each of the branches start with a receive shape connected to different
ports.
My question is which branch that will execute whn there are messages
"waiting" on both receive locations when the execution reaches the listen
shape?
Maybe this isn't specified, but it would be nice to know...
Thanks for all comments and ideas!
| |
| Stephen W. Thomas 2005-12-12, 5:59 pm |
| Hello.
I don’t think you’d ever has messages waiting since the Receive Subscription
probably doesn’t exist until you reach the shape… well I guess it could once
you initialize the correlation and hit a persistence point. Or many if you
had a convoy (if that’s possible inside a listen).
Anyway, a single listen shape is either or. If two messages were there you
should just get the first one routed to the port.
I put together a sample some time ago that allows you to receive multiple
messages through listen shapes allowing for an eventual timeout if the do not
all arrive. I had not posted it anyplace so if you want it, just let me know.
Hope this helps.
Stephen W. Thomas
http://www.biztalkgurus.com
http://geekswithblogs.net/sthomas/
"Samuel L" wrote:
> Hi!
>
> Let's say we have a listen shape with two branches in the middle of our
> orch. Each of the branches start with a receive shape connected to different
> ports.
>
> My question is which branch that will execute whn there are messages
> "waiting" on both receive locations when the execution reaches the listen
> shape?
>
> Maybe this isn't specified, but it would be nice to know...
>
> Thanks for all comments and ideas!
>
>
| |
| Samuel L 2005-12-12, 5:59 pm |
| Thanks Stephen...
What I would like to know, is which branch will execute if both branches are
"ready" to execute at the same time? Maybe this is a question with no
relevance, but I'm just curious about how the implementation is made.
Thanks for your comments!
"Stephen W. Thomas" wrote:
[vbcol=seagreen]
> Hello.
>
> I don’t think you’d ever has messages waiting since the Receive Subscription
> probably doesn’t exist until you reach the shape… well I guess it could once
> you initialize the correlation and hit a persistence point. Or many if you
> had a convoy (if that’s possible inside a listen).
>
> Anyway, a single listen shape is either or. If two messages were there you
> should just get the first one routed to the port.
>
> I put together a sample some time ago that allows you to receive multiple
> messages through listen shapes allowing for an eventual timeout if the do not
> all arrive. I had not posted it anyplace so if you want it, just let me know.
>
> Hope this helps.
>
> Stephen W. Thomas
> http://www.biztalkgurus.com
> http://geekswithblogs.net/sthomas/
>
>
> "Samuel L" wrote:
>
|
|
|
|
|