I have resolved this issue. I got Flex 2 working with a remote CF
server.

I learned two things:

1) services-config.xml must be configured with the domain name that you
are using, without {context-root} in the path. Here is an example:

The default is this:
<endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/> - this works when CF
Server is local.

<endpoint uri="http://www.[yourdomainhere].com/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/> - this works with a
remote CF Server.

<endpoint
uri="http://www.[yourdomainhere].com{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/> - this doesn't work with
IIS and a remote CF server.

2) When you Run your app again, and it loads into a new tab in Firefox,
it's bizarre, but it was still loading a cached version of the app. I
had to push the refresh button to get the updated file to run. I started
playing with the text I used on the button in my HelloWorld app. My
changes did not show until I refreshed it. Close the tab, Run the app
again in FB2, tab in Firefox opens automatically - it's the cached
version again, refresh it - ah there's the changes. I had so many tabs
open in my browser, the window never got closed once. Some of my config
changes never had a chance to work, because I didn't refresh after a new
tab would open. It's frustrating, but now that I know, I can deal with
it.

Thanks to everyone for offering suggestions. I appreciate the responses.

Happy coding,

Jim


--- In [email protected], "Stefan Richter" <[EMAIL PROTECTED]> wrote:
>
> I had similar trouble:
> http://www.flashcomguru.com/index.cfm/2006/11/11/flex2remoting
>
> Read all the comments before you try anything.
>
> If I remember correctly I managed to use a remote CF box *without*
having to
> use any services-config file whatsoever (which is what I wanted to
do).
> I almost lost my mind back then... :-) Endpoint, config files,
> destinations... aaaahh how complicated does this look when you glance
at the
> docs?
>
> Stefan
>
>
>
>
>   _____
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Peter Farland
> Sent: 11 January 2007 19:01
> To: [email protected]
> Subject: RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
> Remoting?
>
>
>
> You can avoid that restriction if you use a /crossdomain.xml file that
> is hosted on the server you are remoting to and allows the domain from
> which your swf is hosted to contact it.
>
> ________________________________
>
> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> [mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com]
> On
> Behalf Of Douglas Knudsen
> Sent: Thursday, January 11, 2007 1:32 PM
> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
> Remoting?
>
> AFAIK, the swf has to be served from the same box you remote to.
>
> DK
>

Reply via email to