Flex3在应用RemoteObject出现问题解决方法
发布时间:2020-12-15 04:08:56 所属栏目:百科 来源:网络整理
导读:出现该问题 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的s
出现该问题 <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未配置 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |