开发者

Problem Sending Server Side Messages from BlazeDS to All Browsers

开发者 https://www.devze.com 2023-01-22 09:18 出处:网络
I\'ve run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channe

I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers.

relevant Bits from messaging-config.xml Adapter: Destination:

<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>

Relevant Bits from 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>

I feel like things are setup correctly in the channel definition but, perhaps, some of those user-agent settings are off (I have played with their settings, to no avail thus far).

Thanks, in advance, for any suggestions or insights!

Regards, Craig


I never sorted out why the server-side messages never reached the client. However, my setup was less than ideal for an active site. So, I switched to using ActiveMQ and, ever since, the messaging has been fantastic!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号