您的位置:首页 > 移动开发 > Objective-C

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

2013-08-22 18:14 405 查看


出现该问题

<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未配置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐