Hey,
I posted this in the Spring BlazeDS Forum and they told me to ask here.
We are working on a Spring-Flex-Cairngorm based application and have the configuration for the AMFChannels in a server-config.xml file. Now we want to get these information in our Flex application via mxml.
At the moment we have this:
We want to get rid of the hard coded uri in the amf channel and take this information from the server-config.xml. We found code which uses actionscript and ServerConfig.getChannel(), but we did not figure out how to include this in a Cairngorm(!) structured application.Code:<business:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:business="com.adobe.cairngorm.business.*"> <mx:AMFChannel id="myamf" uri="<hard-coded uri>" /> <mx:ChannelSet id="channelSet" channels="{[myamf]}" /> <mx:RemoteObject id="foo" destination="Foo" showBusyCursor="true" channelSet="{channelSet}" /> </business:ServiceLocator>
Do you have any suggestions?
Regards,
Amateur


Reply With Quote