RPC Services vs. Messaging Service
来源:互联网 发布:渡边 知乎 编辑:程序博客网 时间:2024/05/29 08:22
BlazeDS uses two patterns for sending and receiving messages:
therequest/reply pattern and
the publish/subscribe pattern.
RemoteObject,HTTPService, and WebService components use the request/reply messagepattern, in which the Flex component makes a request and receives areply to that request.
The RPC components are designed for client applications in which acall and response model is a good choice for accessing external data.These components let the client make asynchronous requests to remoteservices that process the requests, and then return data to your Flexapplication.
The RPC components call a remote service, and thenstore response data from the service in an ActionScript or XML objectfrom which you obtain the data. You can use the RPC components in theclient application to work with three types of RPC services: remoteobject services with the RemoteObject component, web services with theWebService component, and HTTP services with the HTTPService component.
You declare RemoteObject components in MXML or ActionScript to connectto remote services. Use the RemoteObject component to call methods on aJava class or ColdFusion component.
Producer and Consumer components use thepublish/subscribe message pattern. In this pattern, the Producerpublishes a message to a destination defined on the BlazeDS server. AllConsumers subscribed to that destination receive the message.
The Messaging Service supports publish-subscribe messaging. Inpublish-subscribe messaging, each message can have multiple consumers.You use this type of messaging when you want more than one consumer toreceive the same message. Examples of applications that can usepublish-subscribe messaging are auction sites, stock quote services,and other applications that require one message to be sent to manysubscribers.
You can support point-to-pointmessaging, also known as queue-based messaging, between Flex clients byusing the JMSAdapter and bridging to a JMS queue.
The Messaging Service supports bridging BlazeDS to Java Message Service(JMS) messaging destinations by using the JMSAdapter. The JMSAdapterlets Flex clients publish messages to and consume messages from a JMSserver.The JMSAdapter supports topic-based and queue-based messaging.The JMSAdapter class lets Flex applications participate in existingmessaging-oriented middleware (MOM) systems. Therefore, a Javaapplication can publish messages to and respond to messages from Flexapplications.
JMS queues are point-to-point, unlike topics which are one-to-many.A better choice for point-to-point messaging is to use theActionScriptAdapter in conjunction with message filtering on the clientside.
- RPC Services vs. Messaging Service
- RPC in oslo.messaging
- Web Service 实践之 REST vs RPC
- Web Service实践之REST vs RPC
- Web Service实践之REST vs RPC
- Web Service学习 之REST vs RPC
- Web Service实践之REST vs RPC
- BlazeDs Messaging service filtering
- BlazeDs Messaging service filtering
- BlazeDs Messaging service filtering
- Flex messaging service
- Web Service实践之REST vs RPC(转)
- Web Service实践之REST vs RPC(转)
- Web Service实践之REST vs RPC(转)
- Informatica - Two Integration Services VS One Repository Service
- RPC service
- RPC services 组件
- RPC services 组件
- VC++之Windows程序运行原理小计
- 大家看看!
- 如何解决MTK平台手机重启问题
- IE和Firefox(火狐)在JavaScript方面的不兼容及统一
- 2009-1-14 GMAT 2
- RPC Services vs. Messaging Service
- GPS NEMA 0183协议
- SqlServer2000加载.mdb数据
- Bank Setup Frequently Asked Questions
- 用 CSS3 实现未来的 Web
- Mathtype 快捷键
- 练习 3.16 删除一组数据中的相同数据
- 解决Visual Studio 2005 aspx页面无法显示设计视图的方法
- PHP 40技巧性知识