Setting network properties

A destination contains a set of properties for defining client-server messaging behavior. The following example shows the network-related properties of a destination:

...
    <destination id="chat-topic">
        <properties>
            <network>
                <session-timeout>0</session-timeout>
                <throttle-inbound policy="ERROR" max-frequency="50"/>
                <throttle-outbound policy="REPLACE" max-frequency="500"/>
            </network>
    ...
        </properties>
    </destination>
...

Message Service destinations use the following network-related properties:

Property

Description

session-timeout

Idle time in minutes before a subscriber is unsubscribed. When the value is set to 0 (zero), subscribers are not forced to unsubscribe automatically.

throttle-inbound

The max-frequency attribute controls how many messages per second the server can receive. The policy attribute indicates what to do when the message limit is reached.

A policy value of ERROR indicates that an error should be returned if the limit is reached. A policy value of IGNORE indicates that no error should be returned if the limit is reached.

throttle-outbound

The max-frequency attribute controls how many messages per second the server can send. The policy attribute indicates what to do when the message limit is reached.

A policy value of ERROR indicates that an error should be returned if the limit is reached. A policy value of IGNORE indicates that no error should be returned if the limit is reached. A policy value of REPLACE indicates that the previous message should be replaced when the limit is reached.


Flex 2.01

Take a survey