--- In flexcoders@yahoogroups.com, "tchredeemed" <apth...@...> wrote: > > Basically, right now my setup looks like this: > > -------------------------------------------------------------------- ---- > > <!-- SECURE --> > <!-- <channel-definition id="rubyamf" > class="mx.messaging.channels.SecureAMFChannel"> --> > > <!-- NOT SECURE --> > <channel-definition id="rubyamf" class="mx.messaging.channels.AMFChannel"> > > <!-- WWW --> > <!-- <endpoint uri="https://www.gladhandle.com/rubyamf/gateway" > class="flex.messaging.endpoints.SecureAMFEndpoint"/> --> > <!-- <endpoint uri="http://www.gladhandle.com:3000/rubyamf/gateway" > class="flex.messaging.endpoints.AMFEndpoint"/> --> > > <!-- LOCAL --> try this: use bindings on the server, port and contextroot after that you have to hardcode! I think
<endpoint url="http://{server.name}:{server.port}/ {context.root}/gateway/http"> class="flex.messaging.endpoints.AMFEndpoint"/> > > </channel-definition> > > -------------------------------------------------------------------- ---- > > Obviously, that is not the best way. I have to recompile this with > the correct channel-definition/endpoint uncommented depending on if I > am running it locally (development), off our dev server (testing), or > on www (live). > > What would be a better way to approach this? >