Hi,

I've got an application that uses LCDS RemoteObjects and this worked
fine as a development build - I used the Ant mxmlc task and configured
the services and compiler.context-root properties to point at my
development LCDS web-app and everything was dandy.

However, when I tried to rename my web-app it stopped working... After
some googling I discovered that using {context.root} in your
services-config.xml and building with Flex Builder or mxmlc
effectively hard-codes the endpoint urls for your services into your
swf file.

This is an issue for me because I need to be able to do is compile my
app once, but then be able to be able copy this app for different
clients (i.e. each client will have a separate copy of the application
- Client1 will access the app via www.mycomp.com/myapp/client1,
Client2 will access the app via www.mycomp.com/myapp/client2, etc).

I've tried creating an AMFChannel in my client code and setting this
as the channel for my mx:RemoteObjects, but this doesn't seem to work.
I'm guessing I might also need to amend my services-config-xml file to
get this to work???

If anyone can shed any light on this it would be greatly appreciated.

Thanks,

Lawrie

Reply via email to