2010-11-16 79 views
1

我試圖將簡單的聊天Java/BlazeDS項目轉換爲新的Spring BlazeDS安裝程序。- Spring BlazeDS集成

我開始清新的複製在BlazeDS的BlazeDS的彈簧文件夾的內容裏面加入了一些新的文件

web.xml 
flex-servlet.xml 
spring/ 
    app-config.xml 
    infrastructure-config.xml 
    security-config.xml 
flex/ 
    services.config 

services.config現在已刪除消息傳遞,遠程處理和代理引用4交鑰匙發行CONFIGS。 我的Flex swf正在編譯這個服務配置。

<services> 
    <default-channels> 
     <channel ref="my-polling-amf" /> 
    </default-channels> 
</services> 

我的Flex-servlet.xml中包含

<flex:message-broker> 
    <flex:message-service 
default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" /> 
    <flex:secured /> 
</flex:message-broker> 

<flex:message-destination id="chat" /> 

我的問題,當我啓動SWF是此消息

[MessagingError消息='目的地 '聊天' 不存在或目的地沒有定義頻道(且應用程序未定義任何默認頻道)']

是否有人e知道它在哪裏尋找這個目的地,如果在我的設置中出現任何不正確的地方?

回答