Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/357.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从BlazeDS向所有浏览器发送服务器端消息时出现问题_Java_Apache Flex_Coldfusion_Blazeds - Fatal编程技术网

Java 从BlazeDS向所有浏览器发送服务器端消息时出现问题

Java 从BlazeDS向所有浏览器发送服务器端消息时出现问题,java,apache-flex,coldfusion,blazeds,Java,Apache Flex,Coldfusion,Blazeds,我在服务器上向Flex客户端发送BlazeDS消息时遇到了一些麻烦。我在services-config.xml文件中正确设置了(我认为)messaging-config.xml和流媒体频道设置的适配器和目的地。这些消息在Safari(Mac和PC)中运行得很好,但没有其他浏览器 messaging-config.xml中的相关位 适配器: 目的地: <destination id="FriendNotifierGateway"> <adapter ref="friendNoti

我在服务器上向Flex客户端发送BlazeDS消息时遇到了一些麻烦。我在services-config.xml文件中正确设置了(我认为)messaging-config.xml和流媒体频道设置的适配器和目的地。这些消息在Safari(Mac和PC)中运行得很好,但没有其他浏览器

messaging-config.xml中的相关位 适配器: 目的地:

<destination id="FriendNotifierGateway">
<adapter ref="friendNotifierAdapter" />
<properties>
  <server>
    <max-cache-size>1000</max-cache-size> 
    <durable>true</durable>
    <allow-subtopics>true</allow-subtopics>
    <subtopic-separator>.</subtopic-separator>
  </server>
</properties>        
<channels>
    <channel ref="my-streaming-amf"/>
    <channel ref="cf-polling-amf"/>
</channels>

1000
符合事实的
符合事实的
.

services-config.xml中的相关位

<channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
      <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint" /> 
      <properties>
        <idle-timeout-minutes>0</idle-timeout-minutes> 
        <max-streaming-clients>500</max-streaming-clients> 
        <server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis> 
        <user-agent-settings>
          <user-agent match-on="MSIE" kickstart-bytes="2048" max-streaming-connections-per-session="1" /> 
          <user-agent match-on="Firefox" kickstart-bytes="2048" max-streaming-connections-per-session="4" /> 
          <user-agent match-on="Safari" kickstart-bytes="2048" max-streaming-connections-per-session="3" />
          <user-agent match-on="Opera" kickstart-bytes="2048" max-streaming-connections-per-session="3" />
          <user-agent match-on="Chrome" kickstart-bytes="2048" max-streaming-connections-per-session="3" />   
        </user-agent-settings>
      </properties>

0
500
5000

我觉得频道定义中的设置是正确的,但可能有些用户代理设置是关闭的(我已经使用了它们的设置,到目前为止没有任何效果)

提前感谢您的任何建议或见解

问候,,
Craig

我从来没有弄清楚为什么服务器端消息从未到达客户端。但是,对于活动站点,我的设置并不理想。因此,我转而使用ActiveMQ,从那以后,消息传递变得非常棒

我不知道你到底想做什么,我现在正在重新安装,所以我不能玩,但是你看过我关于BlazeDS、ColdFusion和Flex/Ajax桥的系列文章吗?配置的东西可能会有帮助。谢谢,斯蒂芬。我去看看。我的目标只是将消息从服务器发送到Flex客户端(我们使用的是Railo3.2RC2、Tomcat7和BlazedS3.x)。在Safari中,从服务器到客户端的所有消息都可以正常工作,但所有其他浏览器都会出现故障(即,消息不会发送到浏览器)。消息是否会消失在以太中,还是会在客户端生成异常?你知道他们真的会被发送给所有的客户吗?格雷戈:这些信息完全消失了!没有例外,我知道他们很抱歉——误按回车键:)。。。我知道他们正在开火,因为我已经在服务器端调试过了。谢谢