I found a topic on adobe forum http://forums.adobe.com/thread/295888
So in fact server.name and server.port are replaced by flash at runtime and context.root isrepalced with the argument of the compiler, so I'm tying to change my context root with my application name + version Thanks for your reply On 12 nov, 11:42, Andriy Sukhyy <[email protected]> wrote: > Hi, Sebastien Bordes. > * > * > *You can try add this code * > * > * > * > private function set endpoint(p_endpoint:String):void { if > (URLUtil.isHttpURL(p_endpoint)) > { > m_endpoint = URLUtil.isHttpsURL(p_endpoint) ? > URLUtil.getFullURL(p_endpoint, "messagebroker/amfsecure") : > URLUtil.getFullURL(p_endpoint, "messagebroker/amf"); }} > > * > * > * > *p_endpoint you can get from your Main application and add handlig > on preinitialize event;* > * > * > * > * > 2009/11/12 Sebastien Bordes <[email protected]> > > > Hi, > > > I'm working on a Flex Application which use BlazeDS to communicate > > with the server. > > > So in my pom I add the famous line : > > > <services>${basedir}/../server/src/main/webapp/WEB-INF/flex/services- > > config.xml</services> > > > In this file there is some variables that are automatically translated > > by the FlexBuilder compiler with values stored in the FlexServer > > properties view. > > > <endpoint url="http://{server.name}:{server.port}/{context.root}/ > > spring/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/ > > > When I try to deploy my application on another server than localhost > > the application can't connect to the server. > > > Is there a way to change this values dynamically ? inorder to build > > applications for various server without have to change the FlexServer > > values... > > > Thanks > > > -- > > You received this message because you are subscribed to the Google > > Groups "Flex Mojos" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<flex-mojos%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/flex-mojos?hl=en?hl=en > > >http://blog.flex-mojos.info/ -- You received this message because you are subscribed to the Google Groups "Flex Mojos" 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/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/
