Mule ESB的component(一)——概念介绍
来源:互联网 发布:sql注入攻击检测工具 编辑:程序博客网 时间:2024/05/01 10:00
1. Component(组件)的定义:
Components are at the core of Mule services: each service hosts a component. This components is the destination for messages after they have been received by the inbound endpoint, unless filtering or forwarding router is used.
Component(组件)是mule的核心:每一个services都拥有一个component。这个component是inbound endpoint接收到message(消息)后的目的地,除非被过滤或路由被使用。
2. 什么场合适合使用component(组件)
. Some message-related operations are not conceptually fitted anywhere else. For example, a transformer would not be the best place for executing business logic or logging messages.
一些关于消息的操作从概念上讲不适合放在其他任何地方。比如,一个transformer并非执行业务逻辑或记录消息日志的最好的地方。
. Processing a message might require to communicate with another service. Components can act as one-stop communication devices and perform operations like synchronous RPC calls in a more straightforward manner than what you could do with, say, a chaining router and a bunch of transformers.
当消息处理需要与其他业务交流。在一次简单的RPC远程调用中,你可以使用component(组件)作为一站式解决方案或是执行方法,就像一个router(路由)和一个transformers(转换器).
. Unlike other Mule moving parts, components do not mandate the implementation of a specific interface. This enables the usage of any existing business logic POJO directly as a Mule component.
不像其他mule的组件,component(组件)不需要继承任何特殊的接口。这用使得mule的component可以直接执行任何已知的业务逻辑。
. Components offer features that other Mule entities do not. For example, you can pool components to handle heavy concurrent workloads only by means of configuration.
component(组件)提供了mule其他模块所不具备的功能。比如你可以使用pool components(组件池)的配置操作一个重量级的并发负载。
. Exceptions thrown at component level do not have the same semantics than exception thrown elsewhere. If your custom code executes business logic, throwing an exception from a transformer or a router would not be interpreted and reported the same way by Mule than if you were throwing it from your component.The former would be handled by the connector’s exception strategy, while the latter would be handled by the service exception strategy.
component层抛出的异常和其他地方抛出的异常含义不同。在你自定义的业务逻辑中,tansformer或router使用mule抛出的异常和component抛出的异常在解析和返回的方式不同。因为前者将交由connecter的异常策略,而后者则交由service异常策略。
- Mule ESB的component(一)——概念介绍
- Mule ESB的component(三)——Java Component
- Mule ESB的component(二)——Component的使用
- Mule ESB 的基本概念(一)
- mule esb exception(一)
- Mule ESB概念详解
- Mule ESB Component配置摘要
- 关于MULE ESB相关的介绍
- SOA开源技术——Mule ESB介绍简介(ZT)
- MULE ESB功能介绍
- Mule ESB 介绍
- [SOA] Mule ESB 3.x 入门(一)—— 消息流
- mule esb 相关概念(摘要)
- ESB构架的MULE
- Mule ESB的filter
- Mule ESB flow介绍摘要
- Mule ESB flow介绍摘要
- Mule ESB—集成到tomcat
- 各种算法-引用计数(reference counting)
- Hibernate @OneToOne -- 2
- WCF---“无法从http://XXX/XXX.svc?wsdl获取元数据”错误的解决方法
- iOS中Category的原理
- codeforces 498 b Name That Tune
- Mule ESB的component(一)——概念介绍
- 多看事实论述,还是总结归纳?
- GUI
- 编写高度可维护javascript代码的几点关键性原则
- java 多线程并发执行
- HDU1102 Constructing Roads 最小生成树
- C++ Primer(类)
- 高性能服务开发之定时器
- Mule ESB的component(二)——Component的使用