【问题标题】:[spring]channels attribute of <flex:remoting-destination> tag doesn't work<flex:remoting-destination> 标签的 [spring]channels 属性不起作用
【发布时间】:2013-03-18 11:32:37
【问题描述】:

我通过 Spring 配置 blazeDS 远程服务。 我尝试覆盖远程服务的默认通道。

<flex:remoting-destination ref="flexCustomerService" destination-id="customerService" channels="customers-channel-secure-amf, customers-channel-amf"/>

但是在运行时我得到 flex 错误 Server.Processing:无法通过通道“channel-secure-amf”访问目标“customerService”。

【问题讨论】:

  • 您是否正在尝试创建自己的自定义 AMF 通道?你能提供你定义的频道代码吗?

标签: spring apache-flex flex3 blazeds


【解决方案1】:

问题在于在 flex 端定义自定义通道集。我在 flex-servlet.xml 中定义了所有远程服务,它不用于编译 flex。所以我只是将属性 channelSet 添加到 &lt;mx:RemoteObject&gt; 以使 flex 了解 flex 端的自定义通道标签。

<mx:RemoteObject id="customerService" destination="customerService" fault="dispatchFaultEvent(event)" makeObjectsBindable="true" channelSet="{customerServiceSet}"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-11-13
    • 1970-01-01
    • 2011-10-16
    • 1970-01-01
    • 2016-09-06
    • 1970-01-01
    • 2018-10-10
    • 1970-01-01
    相关资源
    最近更新 更多