BizTalk Server Orchestration - Routing

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2006 > Routing





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 Routing
Morten Moos

2006-01-31, 7:58 am

I just tripped over the direct binding option/send to messagebox option in
biztalk.
Question:
1. is it possible to promote a value (unique number). then send it to the
messagebox.
2. Set a filter expression on a send port i.e "if promoted.value == value"
will the send port pick it from messagebox, or must it be an
orhestrationport that picks the message ?



Yossi Dahan

2006-01-31, 7:58 am

Morten Moos wrote:
> I just tripped over the direct binding option/send to messagebox option in
> biztalk.
> Question:
> 1. is it possible to promote a value (unique number). then send it to the
> messagebox.
> 2. Set a filter expression on a send port i.e "if promoted.value == value"
> will the send port pick it from messagebox, or must it be an
> orhestrationport that picks the message ?
>
>
>

A message arriving to the messagebox through a direct binding port is
exactly like a message arriving to the message box from a receive port.
all subscriptions will be evaluated and all matching ones will receive
the message (so - yes - you can have a send port subscribe to it)
subscriptions can use any promoted property in the message context (but
not distinguished fields)

--
Yossi Dahan
www.sabratech.co.uk
Tomas Restrepo \(MVP\)

2006-01-31, 7:58 am

Hi Morten,

>I just tripped over the direct binding option/send to messagebox option in
> biztalk.
> Question:
> 1. is it possible to promote a value (unique number). then send it to the
> messagebox.


Promotion of a value to the context of a message can be done by two things:
1- A receive pipeline: Either the disassembler or a custom pipeline
component can promote a context property either from a value in the message
itself, or, more interesting, an arbitrary value into an arbitrary property
in the context by a custom pipeline component.
2- An orchestration: In this case, the orchestration needs to put the value
into the message context during a message assignment, and later initialize a
correlation set based of the same context property to ensure it is promoted.
Just assigning the value by itself sets it, but does not promote it.

> 2. Set a filter expression on a send port i.e "if promoted.value ==
> value"
> will the send port pick it from messagebox, or must it be an
> orhestrationport that picks the message ?


It can certainly be a send port, or even a send port group. It is precisely
that set of filters that allow content-based routing to function, and it is
based off the same publish and subscribe mechanism that biztalk uses for
everything else.

You might want to read Charles Young's "Direct Binding Models in BizTalk"
article, which explains all this very nicely:
http://geekswithblogs.net/cyoung/articles/19546.aspx


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


Morten Moos

2006-01-31, 7:58 am

Thanks for answer and tips!

i just got my experiment to work, so i am happy.


"Tomas Restrepo (MVP)" wrote:

> Hi Morten,
>
>
> Promotion of a value to the context of a message can be done by two things:
> 1- A receive pipeline: Either the disassembler or a custom pipeline
> component can promote a context property either from a value in the message
> itself, or, more interesting, an arbitrary value into an arbitrary property
> in the context by a custom pipeline component.
> 2- An orchestration: In this case, the orchestration needs to put the value
> into the message context during a message assignment, and later initialize a
> correlation set based of the same context property to ensure it is promoted.
> Just assigning the value by itself sets it, but does not promote it.
>
>
> It can certainly be a send port, or even a send port group. It is precisely
> that set of filters that allow content-based routing to function, and it is
> based off the same publish and subscribe mechanism that biztalk uses for
> everything else.
>
> You might want to read Charles Young's "Direct Binding Models in BizTalk"
> article, which explains all this very nicely:
> http://geekswithblogs.net/cyoung/articles/19546.aspx
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com