MXMLApplicationContext Samples
Hi,
There is sufficient detail in the documentation for configuring SAS application context using XML files but there is very minimal to do using MXML.
The following configuration returns a channel length of zero for the configured ChannelSet.
<?xml version="1.0" encoding="utf-8"?>
<Objects
xmlns="http://www.springactionscript.org/mxml/config"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.messaging.ChannelSet;
import mx.messaging.Channel;
import mx.messaging.channels.AMFChannel;
]]>
</fx:Script>
<fx:Declarations>
<Object id="amfChannel" clazz="{mx.messaging.channels.AMFChannel}">
<Property name="url" value="http://localhost:8090/dmi/messagebroker/amf"/>
</Object>
<Object id="remotingChannelSet" clazz="{mx.messaging.ChannelSet}" >
<MethodInvocation methodName="addChannel">
<Arg ref="{amfChannel}">
</MethodInvocation>
</Object>
</fx:Declarations>
</Objects>
Could you point me to sample applications / documentation about configuring Sprint ActionScript DI using MXML?
Any help is much appreciated.