Setting server properties

A destination contains a set of properties for controlling server-related parameters. The following example shows server-related properties of a destination:

...
    <destination id="chat-topic">
        <properties>
...
            <server>
                <max-cache-size>1000</max-cache-size>
                <message-time-to-live>0</message-time-to-live>
                <durable>true</durable>
                <durable-store-manager>
                    flex.messaging.durability.FileStoreManager
                </durable-store-manager>
            </server>
        </properties>
    </destination>
...

Message Service destinations use the following server-related properties:

Property

Description

max-cache-size

Maximum number of messages to maintain in memory cache.

message-time-to-live

How many milliseconds that a message is kept on the server.

A value of 0 means the message lasts forever.

durable

Boolean value that indicates whether messages should be saved in a durable message store to ensure that they survive connection outages and reach destination subscribers.

When the JMS adapter is used, it inherits the durable value.

durable-store-manager

Durable store manager class to use when not using the JMS adapter. By default, the flex.messaging.durability.FileStoreManager, included with Flex Data Services, stores messages in files in the /WEB-INF/flex/message_store/DESTINATION_NAME of your Flex web application. You can change this location by setting the file-store-root property.

Note: Using the Flex Data Services FileStoreManager for durable messaging is not cluster-safe.

batch-write-size

(Optional) Number of durable message files to write in each batch.

file-store-root

(Optional) Location for storing durable message files.

max-file-size

(Optional) Maximum file size in kilobytes for durable message files.


Flex 2.01

Take a survey