Hi, guys.
I have configured graniteds in my application and it is working fine, but when I've started my application on a cluster with a loadbalancer - my clients are not receiving messages.
I am configuring gravityamf channel like this:
channelSet.addChannel(new GravityChannel(GRAVITY_CHANNEL_NAME, "http://{server.name}:{server.port}/" + SERVER_CONTEXT + "/" + GRAVITY_CHANNEL_NAME + "/amf")); and Spring automatically replaces URL to "
http://localhost:7001/APPNAME/gravityamf/amfbut for the loadbalancer + cluster Spring cannot automatically replace it with appropriate values.
In documentation i see that channels may be defined like:
    <channels>
        <channel-definition id="my-gravityamf" class="org.granite.gravity.channels.GravityChannel">
            <endpoint
                uri="http://{server.name}:{server.port}/{context.root}/gravityamf/amf"
                class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
    </channels>
 but what about a cluster? Should I have 2 channel definitions? Will Spring automatically replace those "
server.name", "server.port", with a values from a server that is situated in a cluster?