惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
腾讯CDC
博客园 - Franky
S
SegmentFault 最新的问题
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
I
InfoQ
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog RSS Feed
博客园 - 叶小钗
博客园_首页
有赞技术团队
有赞技术团队
雷峰网
雷峰网
量子位
小众软件
小众软件
月光博客
月光博客
U
Unit 42
D
DataBreaches.Net

博客园 - zhanqiangz(闲云野鹤)

在ReportService2005.asmx 找不到 ReportingService2005 类 BizTalk相关的问题,打算持续更新。 恢复被格式化过的硬盘数据 BizTalk - Most possible reason for “is Delimiters are not unique” in EDI transaction What happens if BizTalk artifacts are not GACed? XmlSerializer is not trustable BizTalk - How to create custom functoid. BizTalk - How to debug map in VS2005 BizTalk-Get to know functoid. BizTalk - String Functoids 一辈子都忘不了的七夕节 Head First Design patterns笔记-Singleton patterns (从“一夫一妻制社会中婚约的达成”看单件模式) Global.asax文件里的Application_Init能触发吗? 使用HttpApplication实例(翻译) Head First Design patterns笔记-Decorator Patterns (从”用不同技能武装自己”看装饰模式) Head First Design patterns笔记-Observer Patterns (从TFS的Project alerts功能看观察者模式) ASP.NET 2.0的编译行为 Head First Design patterns笔记-Strategy Patterns (从不同的人使用不同的交通工具上班看策略模式) 晕菜了,TFS居然把vss里的那个rollback功能cut掉了,还好有人写了工具.
BizTalk - Carefully use Send Port Group
zhanqiangz(闲云野鹤) · 2008-05-29 · via 博客园 - zhanqiangz(闲云野鹤)

1. Why Send Port Group?

You want BizTalk Server to send the same message to multiple downstream systems for further processing. Send Port Group is designed to serve this purpose.

2. How dose Send Port Group work with Send Ports?

1). You can stop all the Send Ports within Send Port Group, in this case message routing will fail, and NO messages will be subscribed and routed, that’s to say all the messages will be suspended.

2). you can just stop the Send Port Group with all the Send Ports within it enabled. Send Port Group has no impact on send ports. Messages will be subscribed by Send Ports.

3. If filters are applied both to Send Ports and Send Port Group, what’ going to happen?

Filters on send port groups do not override filters on individual send ports. Filters

used on both send ports and a send port group operate in a cumulative nature. If the

same filter is used on a send port group as well as the individual send ports within the

group, it’s likely that duplicate messages will be sent. Special care must be given if filters

are implemented on both send ports and send port groups.----------------<BizTalk 2006 Recipes>

Here is the schema we are gonna use. Profession fields is promoted for routing.

clip_image002

For sample files are created for testing purpose.

clip_image004

They are sharing the same format.

<ns0:Person xmlns:ns0="http://SendPortGroupTest.Person">

<name>Zack Zhao</name>

<age>28</age>

<profession>Programmer</profession>

</ns0:Person>

From the file name you can see there are two Teachers and two programmers.

After the demo project is deployed on destination box, one Receive Port along with its corresponding Receive Location, three Send Ports and one Send Port Group are created for receiving and subscribing messages.

clip_image006

The directories for receiving and sending messages are shown below.

clip_image008

The Receive Port (Rcv_Person in this example) will receive message from IN folder and drop them to MsgBox).

SendPort_All will subscribe all the messages receive by Rcv_Person and send message to All folder. Likewise, SendPort_Programmer will subscribe the messages which has profession = Programmer, SendPort_Teacher will take care of the messages with profession = teacher.

Now drop the four messages into in folder, open the following three folders All, Programmer and Teacher. You will find 8 files in All, 6 files in Programmer and Teacher. BUT open the files in Programmer folder one by one, see what happens. Some two files have profession = Teacher, similar thing happened to Teacher folder.

clip_image010 clip_image012

The following picture demonstrates how filters work in this situation.

 

 From the chart, all the messages subscribed by Send Port Group will go through all the Send Ports within it not matter the messages meet their filter criteria or not.

In this example, SendPort_Teacher will have

(Teacher1.xml+Teacher2.xml) * 2+ Programmer1.xml+Programmer2.xml =6 files sent to Teacher foler.

SendPort_Programmer will have

(Programmer1.xml+ Programmer2.xml) * 2+ Teacher1.xml+Teacher2.xml =6 files sent to Programmer folder.

SendPort_All will have (Programmer1.xml+ Programmer2.xml+ Teacher1.xml+Teacher2.xml) *2 = 8 files sent to All folder.

4. Other limitations/concerns.

One-way static ports: Send port groups can use only static one-way send ports. The strength

of send port groups is the ability to send the same message to multiple subscribers. However,

one limitation of send port groups is that they can include only static one-way send

ports.

Operating states: The operating state between send ports and send port groups is independent.

The states between send ports and send port groups are identical:

Bound: The send port or send port group has been physically linked to an

orchestration.

Enlisted: The send port or send port group has been associated with the message

to which it will be subscribing from the MessageBox.

Started: The send port or send port group is ready to process messages matching

the appropriate message subscription.

Enlisted ports: You must verify that both send ports and their parent send port groups have

been enlisted and started before messages will be sent. Additionally, send ports must be

enlisted or started before a send port group can be started. However, a send port group can

be enlisted, regardless of the state of the individual send ports it references. The send port

group must be stopped before all of the individual send ports can be unenlisted.