2013-03-18 81 views
0

我通過Spring配置了blazeDS遠程服務。 我嘗試覆蓋遠程服務的默認通道。<flex:remoting-destination>標記的[spring]通道屬性不起作用

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

但在運行時我得到柔性錯誤 Server.Processing:目的地 '的CustomerService' 不超過信道接入 '通道安全-AMF'。

+0

您是否試圖創建自己的自定義AMF頻道?你能提供你定義的渠道代碼嗎? – Miral 2013-03-18 16:06:34

回答

0

問題是關於定義Flex側定製通道集。我在flex-servlet.xml中定義了所有遠程服務,它不適用於編譯flex。因此,我只是將屬性channelSet添加到<mx:RemoteObject>以使flex瞭解Flex側的自定義通道標記。

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

相關問題