Как установить значение server-client-heartbeat-millis с помощью файла класса? - PullRequest
0 голосов
/ 29 марта 2012

как установить значение атрибута server-client-heartbeat-millis этого нижеприведенного xml-файла динамически, используя файл класса.

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

    </channels>

Заранее спасибо.

...