My first guess would be that your application names are the same for site1 and site2.
On Fri, Apr 4, 2008 at 1:51 PM, Andrew Bateman <[EMAIL PROTECTED]> wrote: > > Here is my situation. > > I have multiple Flex apps running on one server (CFMX 7.0.2), under > different domains > > Being a lazy programmer, I send all requests from Flex through a > remote proxy CFC. Based on the paramaters passed, this class forwards > the request to my application framework and returns the result to Flex > in a standard value object. So far so good. > > What I have just noticed is that if the path to the remote proxy is > the same for different websites, the Flex gateway retrieves the wrong > application scope. > > e.g. [file paths etc obviously not real] > > Site1 lives at http://site1.com and has an application name of Site1. > Requests from Flex go through http://site1.com/flex2gateway/ to the > com.flexremoting.RemoteProxy class (c:\site1\com\flexremoting > \RemoteProxy.cfc). > > Site2 lives at http://site2.com and has an application name of Site2. > Requests from Flex go through http://site2.com/flex2gateway/ to the > com.flexremoting.RemoteProxy class (c:\site2\com\flexremoting > \RemoteProxy.cfc). > > Note that the RemoteProxy.cfc files are unique for each site, but with > a standard API. > > When the Flex apps make a request to Site2, the correct file gets > executed (c:\site2\com\flexremoting\RemoteProxy.cfc), but ColdFusion > retrieves the application scope for Site1. > > If I restart the ColdFusion server and access Site2 first, the > opposite happens - Site2 runs fine but Site1 retrieves the application > scope for Site2. > > While it is fairly easy to work around by having a unique proxy class > path for each site, I would prefer not to. > > Has anyone come across this before and if so how did you get around > it? > > Andrew > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
