• Flex3在应用RemoteObject出现问题解决方法



    出现该问题

    <mx:RemoteObject id="robj" destination="hello" endpoint="http://localhost:8080/Remote_Flex/messagebroker/amf" result="onResult(event)" fault="onFault(event)" showBusyCursor="true"/>


    mxml文件没错的话,可以看下services-config.xml的<services>下面

    <destination id="hello">
                	<properties>
                		<source>tangyi.flex.HelloWord</source>
                	</properties>
                	<!-- <adapter ref="java-object" /> -->
                </destination>


    这个节点的destination属性channels="amf"没配置,注意这里的amf对应的services-config.xml的AMF协议,如下

    <channels>
    
            <channel-definition id="amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                </properties>
            </channel-definition>
    
        </channels>


    当然也有可能是mxml文件中的RemoteObject的属性endpoint未配置

  • 相关阅读:
    【css】 text-align 居中导航
    css
    css
    css
    css : object-fit 兼容 ie 的解决方案
    Linux下Nginx配置多个站点
    Dart之环境搭建
    酒店行业的OTA
    主流消息队列MQ比较,MQ的4类应用场景
    消息队列Kafka、RocketMQ、RabbitMQ的优劣势比较
  • 原文地址:https://www.cnblogs.com/keanuyaoo/p/3275565.html
Copyright © 2020-2023  润新知