<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-193  評論-715  文章-1  trackbacks-0

     Channels and channel sets
    A Flex component uses a channel to communicate with a BlazeDS server. A channel set contains channels; its primary function is to provide connectivity between the Flex client and the BlazeDS server. A channel set contains channels ordered by preference. The Flex component tries to connect to the first channel in the channel set and in the case where a connection cannot be established falls back to the next channel in the list. The Flex component continues to go through the list of channels in the order in which they are specified until a connection can be established over one of the channels or the list of channels is exhausted.
    Flex clients can use different channel types such as the AMFChannel and HTTPChannel. Channel selection depends on a number of factors, including the type of application you are building. If non-binary data transfer is required, you would use the HTTPChannel, which uses a non-binary format called AMFX (AMF in XML).

    Messages
    All messages have client-side (ActionScript) implementations and server-side (Java) implementations because the messages are serialized and deserialized on both the client and the server.

    Endpoint
     It is important that the channel and the endpoint use the same message format.

    MessageBroker
    The MessageBroker is responsible for routing messages to services and is at the core of BlazeDS on the server. After an endpoint initially processes the request, it extracts the message from the request and passes it to the MessageBroker. The MessageBroker inspects the message's destination and passes the message to its intended service. If the destination is protected by a security constraint, the MessageBroker runs the authentication and authorization checks before passing the message along

    Services and destinations
    Services and destinations are the next links in the message processing chain in the BlazeDS server. The system includes four services and their corresponding destinationsBlazeDS:
    •     RemotingService and RemotingDestination
    •     HTPProxyService and HTTPProxyDestination
    •     MessageService and MessageDestination
    Services are the targets of messages from client-side Flex components. Think of destinations as instances of a service configured in a certain way. For example, a RemoteObject component is used on the Flex client to communicate with the RemotingService. In the RemoteObject component, you must specify a destination  id  property that refers to a remoting destination with certain properties, such as the class you want to invoke methods on. The mapping between client-side Flex components and BlazeDS services is as follows:
    •     HTTPService and WebService communicate with HTTPProxyService/HTTPProxyDestination         (RPC services)
    •     RemoteObject communicates with RemotingService/RemotingDestination    (RPC services)
    •     Producer and Consumer communicate with MessageService/MessageDestination   (Message services)


    Adapters and assemblers
    Although the BlazeDS server comes with a rich set of adapters and assemblers to communicate with different systems, custom adapters and assemblers can be plugged into the BlazeDS server. Similarly, you do not have to create all destinations in configuration files, but instead you can create them dynamically at server startup or when the server is running.


    Configuration tokens
    The configuration files sometimes contain special  {server.name}  and  {server.port}  tokens. These tokens are replaced with server name and port values based on the URL from which the SWF file is served when it is accessed through a web browser from a web server. Similarly, a special  {context.root}  token is replaced with the actual context root of a web application.
    Note: If you use server tokens in a configuration file for an Adobe AIR application and you compile using that file, the application will not be able to connect to the server. You can avoid this issue by configuring channels in ActionScript rather than in a configuration file.

    How you define JVM options depends on the application server you use. For example, in Apache Tomcat, you can define an environment variable JAVA_OPTS that contains tokens and their values, as this code snippet shows:
    JAVA_OPTS=-Dmessaging.channel=my-amf -Dmy.token=myValue

     

    posted on 2010-04-03 22:31 Robin's Programming World 閱讀(1775) 評論(0)  編輯  收藏 所屬分類: JavaFlex & Flash
    主站蜘蛛池模板: 乱爱性全过程免费视频| 久久久久成人片免费观看蜜芽| 亚洲Av永久无码精品一区二区| 一区二区视频免费观看| 亚洲一级毛片免费看| 免费a级毛片无码a∨性按摩| 久久久久无码精品亚洲日韩| 丰满亚洲大尺度无码无码专线| 四虎影视在线影院在线观看免费视频| 国产成人精品久久亚洲| 亚洲日韩国产二区无码| 95免费观看体验区视频| 亚洲一级特黄大片在线观看| 亚洲免费日韩无码系列| 大学生一级特黄的免费大片视频| 国产精品亚洲а∨无码播放 | 狠狠亚洲狠狠欧洲2019| 亚洲日本VA午夜在线影院| 扒开双腿猛进入爽爽免费视频 | 日韩在线免费看网站| 久久亚洲精品无码aⅴ大香| 暖暖免费中文在线日本| 在线免费观看中文字幕| 豆国产96在线|亚洲| 亚洲人妻av伦理| 久久精品免费电影| 亚洲精品无码精品mV在线观看| 七色永久性tv网站免费看| 亚洲精品不卡视频| 久久午夜羞羞影院免费观看| 亚洲精品乱码久久久久久蜜桃不卡 | 久久精品国产亚洲AV果冻传媒| 一级毛片在线免费播放| 亚洲AV无码一区东京热久久| 国产免费女女脚奴视频网| 亚洲同性男gay网站在线观看| 2021精品国产品免费观看| 久久精品国产亚洲AV高清热| 国产成人精品一区二区三区免费| 亚洲福利电影一区二区?| 国产精品另类激情久久久免费|