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.