Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Promoted VS. Written properties into message context
- This topic has 3 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
September 7, 2006 at 6:44 AM #15599
Dear pros,
What is the difference between writing a property into the context and promoting a property into the context <physically what happens?>
What happens when I say msg.Context.Promote(…. and when I say msg.Context.Write ?
Cheers and thanks for the help in advance,
Yousef
-
September 7, 2006 at 8:57 AM #15604
Only promoted properties are used for message routing inside the MsgBox (i.e. only promoted properties are considered when evaluating subscription predicates). I haven't looked at the internal implementation, but an educated guess might say that the difference between the two on the object model itself is probably just a flag set or maybe they are kept in separate property collections, but probably not much else. The interesting part all happens in the MsgBox in sql server 🙂
-
September 7, 2006 at 3:57 PM #15611
[quote user="tomasr"]Only promoted properties are used for message routing inside the MsgBox (i.e. only promoted properties are considered when evaluating subscription predicates). I haven't looked at the internal implementation, but an educated guess might say that the difference between the two on the object model itself is probably just a flag set or maybe they are kept in separate property collections, but probably not much else. The interesting part all happens in the MsgBox in sql server 🙂
[/quote]Actually I believe you are spot on. If I remember correctly, I read somewhere that each written context property also has an IsPromoted (or similar) boolean variable. If it's true, then the property is considered promoted and available for routing/subscription matching, else it is considered as just written to the message context.
I look at it this way: the values of written context properties are available to your orchestrations and custom pipeline components; promoted properties have the same features as written properties but have the added benefit of being able to be used for subscription fulfillment.
-
September 7, 2006 at 3:59 PM #15612
^ that was me, I didn't realize I wasn't signed in. 🙂
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.