Mule ESB flow介绍摘要

1.flow介绍

A Flow is a simple yet very flexible mechanism that enables orchestration of services using the sophisticated message flow capabilities of Mule
ESB. Using Flow, you may automate integration processes and construct sophisticated integration solutions by simply building them from the
basic Building Blocks provided by Mule. Because of the flexibility of Flow, it is much easier to create solutions that more closely match your
requirements. Flow is new in Mule 3.

2.什么时候使用 flow

A flow is the most versatile and powerful integration mechanism available in Mule.

  注意有些时候还是要使用service,比如if all you wish to do is expose a single service backed by a service component and your requirements are more complex than with 

Simple Service supports, then a Mule Service is still a good choice

3,私有flow

A private flow is one that cannot be accessed from outside the JVM via a Mule Endpoint because it has no Message Source defined.
Private Flows are therefore only used if they are referenced from another construct running in the same Mule instance. When configuring Mule
using XML the <flow-ref> element is used to include one flow in another.
A private Flow differs from the use of a "Processor Chain" in that a Flow has it's own context and Exception Strategy where as when a processor
chain is referenced it is executed in the context of the flow or service that references it.

[html]  view plain copy print ?
  1. <flow name="privateFlow">  
  2. <append-string-transformer message="b"/>  
  3. </flow>  
  4. <flow name="publicFlow">  
  5. <http:inbound-endpoint address="http://localhost:8080"/>  
  6. <append-string-transformer message="a"/>  
  7. <flow-ref name="privateFlow"/>  
  8. <append-string-transformer message="c"/>  
  9. </flow>  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值