【问题标题】:Channel not found error in - Spring BlazeDS Integration未找到通道错误 - Spring BlazeDS 集成
【发布时间】:2010-11-16 01:36:19
【问题描述】:

我正在尝试将一个简单的聊天 Java/BlazeDS 项目转换为新的 Spring BlazeDS 设置。

我重新开始,并在 blazeds 4 统包发行版的 blazeds-spring 文件夹中复制了一些新文件

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

services.config 现在已删除对消息传递、远程处理和代理配置的引用。 我的 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 message='Destination 'chat' 要么不存在,要么目的地未定义频道(并且应用程序未定义任何默认频道。)']

有人知道它在哪里寻找这个目的地吗?如果我的设置显示有任何不正确的地方?

【问题讨论】:

    标签: apache-flex spring configuration blazeds


    【解决方案1】:

    首先确保您使用的是正确的文件名。 BlazeDS XML 配置文件的默认位置/文件名是:

    /WEB-INF/flex/services-config.xml

    Configuring the MessageBroker in Spring

    【讨论】:

      猜你喜欢
      • 2012-04-17
      • 2016-11-26
      • 2016-12-10
      • 2015-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多