FluorineFx.NET

Configuring message channels

Messages are transported to and from service destinations over message channels that are part of the Flex messaging system

AMF Channel

<channels>
  <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint uri="http://{server.name}:{server.port}/{context.root}/Gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/>
  </channel-definition>
</channels>


AMF Channel with polling

<channels>
  <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint uri="http://{server.name}:{server.port}/{context.root}/Gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties/>
        <polling-enabled/>true</polling-enabled/>
      </properties/>
  </channel-definition>
</channels>

Properties

Property element Description

polling-enabled

AMF Channel with polling is used. The client will repeatedly poll the AMF endpoint to create client-pull message consumers.

polling-interval-seconds

The interval at which the polling occurs. Default value is 8.



Near-real-time messaging on HTTP and AMF channels

<channels>
  <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint uri="http://{server.name}:{server.port}/{context.root}/Gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties/>
        <polling-enabled/>true</polling-enabled/>
        <polling-interval-millis/>0</polling-interval-millis/>
        <wait-interval-millis/>0</wait-interval-millis/>
        <max-waiting-poll-requests/>0</max-waiting-poll-requests/>
      </properties/>
  </channel-definition>
</channels>

For near-real-time messaging on AMF channel the FluorineFx asynchronous request support must be enabled with the following config section:

<fluorinefx>
    <settings>
        <runtime asyncHandler="true|false"/>
    </settings>
</fluorinefx>

Properties

Property element Description

polling-enabled

AMF Channel with polling is used. The client will repeatedly poll the AMF endpoint to create client-pull message consumers.

polling-interval-millis

The number of milliseconds between client poll request. Default value is 3000.

wait-interval-millis

The number of milliseconds that the server thread responding to a client poll request waits for messages from that client. Default is 0.

A value of -1 means that server waits indefinitely until new messages arrive for the client before responding to the client poll request.

max-waiting-poll-requests

Specifies the maximum number of server poll response threads that can be in wait state. Default value is 0.

When this limit is reached, the subsequent poll requests are treated as having zero wait-interval-millis.

Note: the current FluorineFx version does not allow longer wait interval than 1 minute (that is the "wait-interval-millis" property). If you set the "wait-interval-millis" to -1 or > 60000 the gateway uses 60000 and ignores the specified value.



 

RTMP Channel

<channels>
  <channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
    <endpoint uri="rtmp://{server.name}:1935" class="flex.messaging.endpoints.RTMPEndpoint"/>
  </channel-definition>
</channels>


 

RTMP Channel using RTMPT

<channels>
  <channel-definition id="my-rtmpt" class="mx.messaging.channels.RTMPChannel">
    <endpoint uri="rtmpt://{server.name}:1935" class="flex.messaging.endpoints.RTMPEndpoint"/>
  </channel-definition>
</channels>
 
 

Properties

Property element Description

bind-address

Specify a <bind-address>xxx.xxx.xxx.xxx</bind-address> element in the RTMP channel's properties section to bind the RTMP server to the specific NIC