JBOSS---ESB 序列之一 Getting Started

本文详细介绍了JBoss ESB中的两种消息处理流程:unAware与aware。unAware流程中,客户端通过JMS Queue发送普通字符串消息,经过JMS Gateway Listener转换为ESB Aware消息并传递给目标服务。aware流程中,客户端直接创建ESB Aware消息,并通过ServiceInvoker发送到指定队列。
[img]http://dl.iteye.com/upload/attachment/316745/28b16666-869a-3919-b5ba-98317ec3558a.jpg[/img]

JBOSS EBS 处理流程(unAware):

1.ESB Unaware JMS Client endpoint puts an ESB Unaware “Hello World” Message (plain String Object) into JMS Queue “queue/quickstart_helloworld_Request_gw”.

2.The JMS Gateway Listener receives the ESB Unaware message. The Gateways Job is to adapt this message by making it an ESB Aware Message for consumption by an ESB Aware Endpoint.

3.The JMS Gateway Listener uses the registry to lookup the Endpoint Reference (EPR) for “FirstServiceESB:SimpleListener” Service. This works out to be JMS Queue “queue/quickstart_helloworld_Request_esb”.

4.The JMS Gateway Listener “adapts” the message into an ESB Aware message and places it into JMS
Queue “queue/quickstart_helloworld_Request_esb”.

5.“FirstServiceESB:SimpleListener” Service receives the message.

6.“FirstServiceESB:SimpleListener” Service extracts the payload from the message and prints it to the console.


JBOSS EBS 处理流程(aware):

此处省略事件顺序流程图:
1. (startup) Register Service “FirstServiceESB:SimpleListener”

2. 客户利用MessageFactory.getInstance().getMessage()创建aware消息,然后构建message 的消息体,最后利用 ServiceInvoker("","").deliverAsync(esbMessage)发送消息。欲将 ESB Aware --- Hello World Message 发送到相应的总线上

3. ServiceInvoker内部 调用相应的注册查询接口查找“FirstServiceESB:SimpleListener”,根据此服务将 ESB Aware --- Hello World Message 发送到总线上 queue/quickstart_helloworld_Request_esb 上

4.“FirstServiceESB:SimpleListener” Service receives the message.

5.“FirstServiceESB:SimpleListener” Service extracts the payload from the message and prints it to the console.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值